def question(n): print("?", n) return int(input()) def answer(c): print("!", c) D = int(input()) a, b, c = question(0), question(1), question(2) d, e = b-a, c-b answer((d+e)//2)