#include int a,b,c; int main() { scanf("%d %d %d",&a, &b, &c); printf("%d\n",(a+b >= 2*c) ? (a+b)-2*c : a+b); return 0; }