from math import* n,k=input(),0 f=lambda x:int(round(1e3*cos(x-k*pi/n))) exec'print f(0),f(pi/2);k+=2;'*n