#include <iostream>

using namespace std;

int main()
{
    double x, y, z;
    cin >> x >> y >> z;
    
    double avg = (x + y + z) / 3;
    
    cout << (int)avg;

    return 0;
}