s=shows f n|mod n 6>4=s(div(n+1)6)" - 1"|1>0=s(div(n-1)6)" + 1" m@main=do n<-readLn;putStrLn$s n" = 6 * "++f n;m