import sys x = 0 y = 1000 while x < y: z = (x + y + 1) // 2 print('?', z) sys.stdout.flush() if input() == 'safe': x = z continue print('?', z + 1) sys.stdout.flush() if input() == 'safe': x = z + 1 else: y = z - 1 print('!', x)