from math import* n=input() for i in range(n):a=pi*2*i/n;print int(round(cos(a)*1e3)),int(round(sin(a)*1e3))