m@main=do n<-readLn;putStrLn$n#" = 6 * "++div(n+1)6#" "++cycle"0+-"!!n:" 1";m (#)=shows