#include <iostream>
#include <cmath>
using namespace std;

int main()
{
    double x; double y; double z;
    cin >> x;
    cin >> y;
    cin >> z;
    int n = ( x + y + z ) / 3;
    cout << n ;
    return 0;
}