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