Card game#11290

Card game

1 second
128 megabytes
Very easy

On their way back to Azerbaijan from Indonesia, Said, Omar, Fidan and Fuad had a layover at Doha airport. While waiting for their connecting flight, they decided to play cards to spend their time "productively".

A standard deck contains cards of different ranks ('', '', '', '', '', '', '', '', '', '', '', '' and '') and suits (♠, ♣, ♥, ♦). Each player is dealt cards. A player's hand is scored as follows:

Since Fuad is new to the game, he decided to practice scoring first. The cards were dealt times, and each time Fuad counted the points in his hand. At the end, he added up all these points.

Now Fuad wants to check whether he calculated the total correctly. Write a program to help him.

Input

The first line contains one integer n~(1 \le n \le 10^4). Each of the next lines contains a string of characters describing Fuad's cards in one deal. Each character is one of '', '', '', '', ''.

Output

Print Fuad's total score over all deals.

Examples

Example 2

Loading
Loading

Example 1

Loading
Loading