Lost card

Lost card. You have a set of cards numbered from 1 to N. One card is missing. Given the number N followed by N-1 distinct integers representing the numbers on the remaining cards, determine and print the number on the missing card.

Test Case Input (N and remaining cards) Expected Output
1 5
1
2
3
5
4
2 4
1
4
3
2
3 6
1
2
3
4
6
5