P23723 [AtCoder] [ABC028B] Character Count
入门
题目描述

Problem Description

You are given a string $ S $.

It is known that this string consists of 6 types of characters: A, B, C, D, E, F.

Count how many times each of these 6 characters appears in the string $ S $.

Input Format

The input is given from the standard input in the following format:

$ S $

A single line contains the string $ S $ where $1 \leq |S| \leq 100$. Here, $ |S| $ denotes the length of $ S $. Also, $ S $ is always composed of the 6 types of characters: A, B, C, D, E, F.

Output Format

Output the occurrence counts of A, B, C, D, E, F separated by spaces in one line. The output should be to the standard output, and a newline should be added at the end. Be careful not to add any extra spaces at the end of the line.

Sample Input and Output

Sample Input #1

BEAF

Sample Output #1

1 1 0 0 1 1

Sample Input #2

DECADE

Sample Output #2

1 0 1 2 2 0

Sample Input #3

ABBCCCDDDDEEEEEFFFFFF

Sample Output #3

1 2 3 4 5 6

Notes/Hints

None

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
BEAF
样例输出
1 1 0 0 1 1