from math import sqrt M=10**9 ANS=[(101000,999999995),(202000, 999999980)] def outer_product(x,y,z,w): return x*w-y*z N=12 while len(ANS)NG+1: mid=(OK+NG)//2 x,y=mid,round(sqrt(M*M-mid*mid)) if outer_product(u-s,v-t,x-u,y-v)<0: NG=mid else: OK=mid ANS.append((OK,round(sqrt(M*M-OK*OK)))) Q=ANS ANS=[] for i in range(len(Q)): x,y=Q[i] ANS.append(str(x)+" "+str(y)) for i in range(len(Q)): z,w=Q[-1-i] ANS.append(str(z)+" "+str(-w)) for i in range(len(Q)): x,y=Q[i] ANS.append(str(-x)+" "+str(-y)) for i in range(len(Q)): z,w=Q[-1-i] ANS.append(str(-z)+" "+str(w)) n=10**6 ANS=ANS[:n] ANS.reverse() print(len(ANS),flush=True) print("\n".join(ANS),flush=True)