puts "0 0" $>.flush s=[0,x=gets.to_i] exit if x==0 puts "100000 0" $>.flush e=[100000,x=gets.to_i] exit if x==0 while s[0]+1.flush x=gets.to_i exit if x==0 if s[1]