Given the sum of four numbers and three of those numbers, find the missing number.
All four numbers are positive integers.
The input will contain one integer (the sum of the four numbers) in the first line and three integers (of those four numbers) in the second line.
All numbers in this problem fit in 32-bit signed integers.
Print the missing number.
Input | Output |
---|---|
10 1 2 3 | 4 |