m@main=do n<-readLn;putStr$"digital_root("++shows n")=";print$9-mod(-n)9;m