#include using namespace std; int main() { int A,B,C; cin >> A >> B >> C; cout << (A+B+C)/3 << endl; }