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