n = 178884 r = 10**3 a,b = 0, -10**9 c = n//4 print(n) for i in range(c): a += r b += i print(a,b) for i in range(c): a -= r b += c-i print(a,b) for i in range(c): a -= r b -= i print(a,b) for i in range(c): a += r b -= (c-i) print(a,b)