X, Y = map(int, input().split()) print(6) print(*[X, X, X, Y, Y, Y]) t = int(input()) print(t)