eolymp
bolt
Try our new interface for solving problems
Problems

Honey Bees

Honey Bees

The behavioral activity of worker honey bees can be divided into the following recognizable tasks: resting (Re), patrolling (Pt), Cell-cleaning (Cc), eating pollen (Ea), tending brood (Tb), comb-building and maintenance (Cm), and external activities (Ex) such as guarding, foraging and dance-following.

The tasks carried out by a honey bee were recorded at hourly intervals for a day, resulting in a data set consisting of whitespace separated symbols from the set {Re, Pt, Cc, Ea, Tb, Cm, Ex}.

Input

Consists of symbols from the set {Re, Pt, Cc, Ea, Tb, Cm, Ex}. The symbols are whitespace separated and could span for several lines. There are at most 24 symbols.

Output

Print a table consisting of 8 lines. Lines 1 to 7 are values in the following format:

Task Count Proportion

The tasks should be ordered this way: Re, Pt, Cc, Ea, Tb, Cm, and Ex. The count is the total frequency count of the task while proportion is the the frequency count divided by the total number of recorded tasks. The proportion should be rounded off to the nearest hundreths and should show exactly two digits after the decimal point.

The 8-th line should always be "**Total C 1.00**" where C is the total number of recorded tasks.

Time limit 1 second
Memory limit 128 MiB
Input example #1
Cc Pt Pt Re Tb Re Cm Cm Re Pt Pt Re Ea Ea Pt Pt
Pt Re Re Cm Cm Pt Pt Cm
Output example #1
Re 6 0.25
Pt 9 0.38
Cc 1 0.04
Ea 2 0.08
Tb 1 0.04
Cm 5 0.21
Ex 0 0.00
Total 24 1.00
Input example #2
Re Re 
Pt Pt Cc Ea 
Re Re 
Ex
Re Re Re 
Output example #2
Re 7 0.58
Pt 2 0.17
Cc 1 0.08
Ea 1 0.08
Tb 0 0.00
Cm 0 0.00
Ex 1 0.08
Total 12 1.00
Source ACM ICM Philippines Multi-Provincial Programming Contest 2013