시간 제한메모리 제한제출정답맞힌 사람정답 비율
0.5 초 2048 MB17516014694.194%

문제

In 2025, the person responsible for coordinating the team that creates the OBI – Online Battle of Influencers – exam is Professor João João, who, in addition to being a professor, is a famous and influential influencer.

So far, the team has created $10$ tasks, and each task has been categorized into one of four difficulty levels: $1$, $2$, $3$, and $4$.

Professor João João wants to know how many more tasks need to be created so that it is possible to assemble an exam with exactly four tasks, each at a different difficulty level.

Given the list of difficulty levels of the tasks already created, can you help Professor João João determine how many tasks still need to be created?

입력

The input consists of a single line containing $10$ integers $D_1, \dots , D_{10}$, where $D_i$ denotes the difficulty level of task $i$ ($1 ≤ D_i ≤ 4$, for $1 ≤ i ≤ 10$).

출력

Your program should print a single line to the output, containing a single integer: the minimum number of tasks that need to be created so that it is possible to assemble an exam with four tasks, each at a different difficulty level.

예제 입력 1

1 3 4 1 3 4 1 3 4 1

예제 출력 1

1

Tasks with difficulty levels $1$, $3$, and $4$ have already been created. Only one task of difficulty level $2$ is missing, so the answer is $1$.

예제 입력 2

4 1 1 4 3 1 2 1 2 2

예제 출력 2

0

Tasks with difficulty levels $1$, $2$, $3$, and $4$ have already been created. Since no difficulty levels are missing, the answer is $0$.