th = pow(10, 100) v, ans = 1, 0 while v <= th: v <<= 1 v = v // 2 while v >= 1: print('?', 1, v) if not (input() == '<'): ans += v v >>= 1 print('!', ans)