m@main=do n<-readLn;putStrLn$"digital_root("++show n++")="++show(1+mod(n-1)9);m