#hhkb2020c. [hhkb2020_c]Neq Min
[hhkb2020_c]Neq Min
Problem Statement
Given is a number sequence of length : .
For each , find the minimum non-negative integer that is not equal to any of the numbers .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print lines in total.
The -th line () should contain the minimum non-negative integer that is not equal to any of the numbers .
Sample Input 1
4
1 1 0 2
Sample Output 1
0
0
2
3
- The minimum non-negative integer that is not equal to is .
- The minimum non-negative integer that is not equal to any of is .
- The minimum non-negative integer that is not equal to any of is .
- The minimum non-negative integer that is not equal to any of is .
Sample Input 2
10
5 4 3 2 1 0 7 7 6 6
Sample Output 2
0
0
0
0
0
6
6
6
8
8