#include #include int main(void){ int x, y, z; scanf("%d%d%d", &x, &y, &z); if(x > y) std::swap(x, y); int res = x; y -= x; int d = y > z ? z : y; res += d; y -= d; z -= d; res += (z / 2); printf("%d\n", res); return 0; }