with(Math)for(i=n=readline();i;)print(1e3*cos(t=i--*2/n*PI).toFixed(3),-1e3*sin(t).toFixed(3))