while 1: i=input();a=b=1e3 while a-i:b/=2;a=int(a+[-b,b][a"[cmp(i,a)] print