for(int n:stdin)write(format("digital_root(%d)=",n),9+n%-9);