The board game uses cards with numbers from 1 to N (N – natural number not exceeding 106). One card is missing. Find her.
Input: Given
N, then
N-1 numbers of remaining cards.
Output: Required to display lost card number.
Examples
# |
Input |
Output |
1 |
5
1
2
3
4 |
5 |
2 |
4
3
2
4 |
1 |