There is a class of $N$ students. Each student has a unique class number from $1$ to $N$.

The Biology teacher Mr. So is now handing out exam papers in ascending order of class number ($1$ to $N$). The class lines up to take the exam papers in order. However, since some students forgot their class number, they are in the wrong position in line. So, some students receive someone else's exam paper.

Count the number of students who receive the wrong exam paper.

Input

The first line contains an integer $N$ ($1 \le N \le 50$).
The second line contains $N$ integers, the class numbers of each student in line. The first integer is the class number of the first student in line, the second integer is the class number of the second student, etc.

Output

Output the number of students who receive the wrong exam paper.

Sample Test Cases

Input Output
4
1 3 2 4
2
Students 2 and 3 received each other's exam paper.
Other students received their own exam paper.
5
2 4 5 1 3
5
Every student received someone else's exam paper.
Click to copy.

Scoring: Per Subtask
Authored by s16f22
Appeared in 2023 Children's Day Mini Contest