ll a,b,c;{rd(a,b,c);wt(c+min(a,b,a+b-c>>1));}