B=9973 A=B-1 print(A,B,flush=True) K=int(input()) print(1,flush=True) res=int(input())