y = 2 x = 1 while x * y <= 10**16: ny = y * 2 + 3 * x nx = y + 2 * x y = ny x = nx print(0, 0) print(2 * x, 0) print(x, y)