x, y = map(int, input().split()) print(f"4\n{ x } { y } { y } { y }", flush=True) print(0)