#cording: utf-8 b = list(map(int, input().split())) for i in range(len(b)): if b[i] != i+1: print(i+1) break