class Start def main _ = input puts "? aa" while true x = readlines.chomp break if x.include?("!") echo "? #{x[-1]}a" end end protected def echo(*x) print(*x) puts end def input = gets.chomp end Start.new.main