#include <stdio.h>
int main(void)
{
int i, ch;
int cnt[26] = {0};
while(1) {
ch = getchar();
if (ch == EOF ) break;
if ( ch >= 'a' && ch <= 'z' )
cnt[ ch - 'a' ]++;
}
puts("文字の出現回数");
for (i = 0; i < 26; i++) {
putchar('a'+i) ;
printf(": %3d\n", cnt[i]);
}
return (0);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgIG1haW4odm9pZCkKewogIGludCAgaSwgY2g7CiAgaW50ICBjbnRbMjZdID0gezB9OwoKICB3aGlsZSgxKSB7CiAgICBjaCA9IGdldGNoYXIoKTsKICAgIGlmIChjaCA9PSBFT0YgKSBicmVhazsKCiAgICBpZiAoIGNoID49ICdhJyAmJiBjaCA8PSAneicgICkKICAgICAgY250WyAgY2ggLSAnYScgIF0rKzsKICB9CgogIHB1dHMoIuaWh+Wtl+OBruWHuuePvuWbnuaVsCIpOwogIGZvciAoaSA9IDA7IGkgPCAyNjsgaSsrKSB7CiAgICBwdXRjaGFyKCdhJytpKSA7CiAgICBwcmludGYoIjogJTNkXG4iLCBjbnRbaV0pOwogIH0KCiAgcmV0dXJuICgwKTsKfQ==