LearnPy Hub
← Arena
IntermediateRating 1100

Find the Missing Number (XOR)

The numbers 0..n with one missing are given. Print the missing one using XOR.

Input

n, then n integers.

Output

A number.

Sample 1

Input
3
3 0 1
Output
2

Sample 2

Input
2
0 1
Output
2
solution.py
Output appears here
Find the Missing Number (XOR) · Python Arena problem · LearnPy Hub