How many variables?#4891

How many variables?

1 second
64 megabytes
Easy

Petya, a young boy with a passion for programming in Pascal, has realized that he often uses too many variables in his programs. This has made it difficult for him to keep track of the number of variables he uses in each program.

To help Petya with this task, you need to write a program that counts the variables for him.

Since Petya is still learning Pascal, he only uses four basic types: boolean, char, double, and integer.

Input

The input consists of several lines, each containing variable declarations. Each line declares variables of a single type. All declarations are syntactically correct according to Pascal rules, with unique variable names, and only the standard types are used: boolean, char, double, integer.

Formally, each declaration follows this format:

identifier {',' identifier } ':' type ';'

Here, type is one of the strings boolean, char, double, integer; identifier is a string made up of letters, digits, or the character '_', and it starts with a letter or the character '_'.

The strings type and identifier , as well as the characters ':', ';' and ',' are indivisible elements. There may be any number of spaces between these elements, as well as before and after them.

It is guaranteed that the input contains no more than lines, each with no more than variables, and each variable name is no longer than characters.

Output

The output should consist of four lines in the following format:

boolean: number of declared boolean variables

char: number of declared char variables

double: number of declared double variables

integer: number of declared integer variables

Ensure there is one space between the colon and the number of variables.

Examples

Example 1

Loading
Loading