print('? 100') r = int(input()) if r == 99: b = 100 else: print('?', 100 - r - 1) b = int(input()) + 1 a = (r - 100) % b print('!', a, b)