n = read_line.to_i a = read_line.split b = read_line.split cnt = a.tally b.each { |s| cnt[s] -= 1 } puts cnt.find { |s, c| c == 1 }.not_nil![0]