from math import floor N = 10**6 r = 10**7 print(N) x = r for _ in range(N): print(x, floor((r**2 - x**2)**0.5)) x -= 1