beecrowd | 3039

Santa's Toys

By Matheus Fabian, URI BR Brazil

Timelimit: 1

Santa Claus reads Christmas letters every year to know what to give to each child. The problem is, many kids don't send their letters to Santa Claus, so he decided that to save his time, he will give the same gift to children who didn't send letters. So he decided that for children who are boys, he will give a toy car, and for girls a doll.

Input

The first line of the entry has an integer N (0 < N ≤ 1000), the number of children who didn't send their letter to Santa. The next N lines consist of two strings, the first is the child's name, and the second is a letter, which can be 'M', to say it's a boy, or 'F' if it's a girl.

Output

The output consists of 2 lines. The first line should contain the number of toy cars that Santa should make, followed by the word "carrinhos", and on the second line, the number of dolls followed by the word "bonecas".

Input Sample Output Sample

5

Milena F

Joao M

Rafaela F

Renata F

Felipe M

2 carrinhos

3 bonecas