n,m,l = map(int, input().split()) b = 0 while True: print("?",2,b) k = int(input()) if(2**b != k): b = 2**b-k break b+=1 print("!",pow(n, m**l, b))