main=do n<-readLn;mapM putStrLn[unwords[show$round$1e3*f(x*pi*2/n)|f<-[cos,sin]]|x<-[0..n-1]]