X, Y = map(int, input().split()) print(4, flush=True) print(X, Y, Y, Y, flush=True) res = int(input()) print(res, flush=True)