LearnPy Hub
← Arena
EasyRating 900

The Missing Number

The array holds n − 1 distinct numbers from 1 to n. Print the missing one.

Input

n, then n − 1 integers.

Output

The missing number.

Sample 1

Input
5
1 2 4 5
Output
3

Sample 2

Input
2
2
Output
1
solution.py
Output appears here
The Missing Number · Python Arena problem · LearnPy Hub