https://www.acmicpc.net/problem/14656
n=int(input()) count=0 a=list(map(int,input().split())) for i in range(n): if a[i]!=i+1: count+=1 print(count)