## Editorial for COCI '16 Contest 4 #1 Bridž

Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

In order to solve this task, we needed to count the number of appearances of characters A, K, Q, and J in all cards together.

The solution of the task is given in the following formula: