LearnPy Hub
← Lists problems
Medium

The Missing Number

The numbers 1 to n appear once each except one is missing. Read the n − 1 numbers (in any order) and print the missing one.

Input

Integers separated by spaces.

Output

One integer.

Sample 1

Input
1 2 4 5
Output
3

Sample 2

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