Find the missing value
Given an unsorted array of elements, it is missing exactly one element from the sequence of to . Find the missing element.
Input Format
An integer followed by space separated numeric values.
Constraints
Output Format
The missing value.
Sample Input 0
10
10 7 4 3 5 1 9 6 8
Sample Output 0
2
Explanation 0
The missing element is 2.
Sample Input 1
6
5 3 4 1 2
Sample Output 1
6
Explanation 1
The last element is missing
xxxxxxxxxx
1
with Ada.Text_IO, Ada.Integer_Text_IO;
2
use Ada;
3
4
procedure Solution is
5
-- Enter your code here. Read input from STDIN. Print output to STDOUT
6
7
8
end Solution