th = pow(10, 1) v = 1 while v <= th: print('?', 1, v) c = input() v <<= 1 print('?', 1, 0) c = input() print('!', -1 if c == '<' else 0)