This page is still under construction.

Parts of this page are still being built. What you see may change.

Alphabet Count

Time limit1sMemory limit256 MB

Summary
Count how many times each letter from a to z appears in the given lowercase word.
Level

Easy1 of 10

Topics
Array
Solved
No attempts yet

Problem

알파벳 소문자로만 이루어진 단어 S가 주어진다. 각 알파벳이 단어에 몇 개가 포함되어 있는지 구하는 프로그램을 작성하시오.

Input

첫째 줄에 단어 S가 주어진다. 단어의 길이는 100 이하이며 알파벳 소문자로만 이루어져 있다.

Output

첫째 줄에 a부터 z까지 각 알파벳이 몇 번 등장하는지 공백으로 구분하여 출력한다.

Examples3

  1. Example 1

    Input
    baekjoon
    
    Expected output
    1 1 0 0 1 0 0 0 0 1 1 0 0 1 2 0 0 0 0 0 0 0 0 0 0 0
    
  2. Example 2

    Input
    a
    
    Expected output
    1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    
  3. Example 3

    Input
    zzz
    
    Expected output
    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3