x1=100 print('?',x1,flush=True) y1=int(input()) x2=99-y1 print('?',x2,flush=True) y2=int(input()) ''' y1=(100+A)%B y2=(x2+A)%B=(99-y1+A)%B=(-1)%B ''' B=y2+1 A=-1 for i in range(1,B): if (100+i)%B==y1: A=i print('!',A,B)