L = list(map(int, input().split())) for i , s in enumerate(L,1): if i != s: print (i) break elif i == 9: print(10)