N = gets.to_i A = gets.split.map(&:to_i) puts (1..N).inject(:+) - A.inject(:+)