import math N = 10**6-1 print(N,flush=True) for i in range(N): x = int(math.cos(math.radians(360*i/N))*10**9+0.5) y = int(math.sin(math.radians(360*i/N))*10**9+0.5) print(x,y,flush=True)