from math import* i=0;a=input();exec'print"%.f %.f"%(cos(i)*1e3+.01,sin(i)*1e3+.01);i+=2*pi/a;'*a