#include #include int main() { int x, y, z; scanf("%d%d%d",&x,&y,&z); for(;;){ if(z<1)break; x>y?y++:x++; z--; } printf("%d",x>y?y:x); }