ll@a,@b,@c;wt(c+min(a,b,a+b-c>>1));