from math import* n=input();d=0 exec'print"%.f %.f"%(1e3*cos(d)+.01,1e3*sin(d));d+=6.28318/n;'*n