for(i=-n=input,-1,print(round(1e3*cos(t=2*Pi*i/n))" "round(1e3*sin(t))))