System.in.eachLine{println"digital_root($it)="+((it as int)%9?:9)}