main=do n<-readLn;mapM putStrLn[["* "!!sum[1|x^2+y^2>n^2]|x<-[-n..n]]|y<-[-n..n]]