puts "! #{(0..2000).bsearch { |x| puts "? #{x}", "? #{x + 1}" STDOUT.flush gets.chop=="out" && gets.chop=="out" } - 1}"