a, b = 100000006, 100000007 print(a, b, flush=True) k = int(input()) print(1, flush=True) ret = int(input())