Simple game
In this task your friend K. will play bridge!
It is known that bridge is played by four players using a -card deck, suits total (clubs, hearts, diamonds, and spades) and values and . At the beginning of the game, each player is dealt cards.
Before starting the game, each player counts their so-called honor points in the following way:
each ace is worth points;
each king is worth points;
each queen is worth points;
each jack is worth point;
the remaining cards (that will be denoted with in this task) are worth points.
Your friend K. has started playing bridge only recently, so he decided to practice counting points. He dealt himself cards times and each time counted his honor points. In the end, he added them up. He wants to know if he’s done a good job. Help him and check!
Input
The first line contains the integer from the task.
Each of the following lines contains , a string consisting of characters , of length , representing the cards your friend K. had in his hand after dealing them for the -th time.
Output
Print the required sum from the task.