#XSS202403. Find the Number(Easy)

Find the Number(Easy)

题目描述

给出长度为 nn 的数组 a1,a2,,ana_1, a_2, \dots, a_n,其中有一个数字只出现了一次,其他数字均出现了两次,请你找出只出现一次的数字。

输入格式

第一行,一个整数 nn1n10611 \le n \le 10^6-1),保证 nn 为奇数。

第二行,nn 个整数表示 a1,a2,,ana_1, a_2, \dots, a_n1ai1091 \le a_i \le 10^9)。

输出格式

一行一个整数,表示只出现一次的数字。

样例

5
1 2 2 3 3
1