# No.693 square1001 and Permutation 2 n = int(input()) a = [int(s) for s in input().split()] print(sum(list(range(1, n + 1))) - sum(a))