ans = 0 for i in range(0, 333)[::-1]: m = 1 << i print('?', 1, m) if input() != '<': ans += m print('!', ans)