#include<iostream>
int
main
()
{
int
x
,
y
,
a
;
std
::
cin
>>
x
>>
y
>>
a
;
std
::
cout
<<
x
+
y
/
3
;
}