from math import gcd A=[] for i in range(1,2230,2): for j in range(1,2230,2): if gcd(i,j)==1: A.append((i,j)) A.sort(key=lambda x:x[1]/x[0]) x=-10**9 y=-10**9 ANS=[] for z,w in A: ANS.append(str(x)+" "+str(y)) x+=z y+=w if len(ANS)==10**6: break print(len(ANS)) print("\n".join(ANS))