l, r = map(int, input().split()) print(f"4\n{ l } { r } { r } { r }", flush=True) print(input())