#1から10 B = list(map(int , input().split())) for i in range(1 , 11): if B[i-1] != i: print(i) break