I,O=input,print N,M,L=map(int,I().split()) if L: while L:O("?",N,M);N=int(I());L-=1 else:O("?",N,1);N=int(I()) O("!",N)