#include <iostream>
using namespace std;
int main()
{
    double x, y, z;

    cin >> x >> y >> z;

    double sum = (x + y + z) / 3;

    int shana = sum;

    cout << shana;

    return 0;
}