program chislo; var s:string; begin read (s); writeln ('KOL EDENIC=',s[ord(s[0])]); writeln ('KOL DESIATKOV=',s[ord(s[0])-1]); end.