People in a group are sitting in a row that is numbered from 1 to N. Every person has been asked the same question that is as follows:
How many people of your country are there in the group?
The answers that are provided may be incorrect. It is known that people of same countries always sit together. If all the given answers are correct, then determine the number of distinct countries that exist. Otherwise, print 'Invalid Data'.
Input format
Output format
For each test case, print a single line containing a single integer that denotes the distinct countries or 'Invalid Data'.
Constraints
1≤T≤1000
1≤N≤100
1≤Ai≤1000
First test case, there are two people each from different country.
Second test case, there are only two people but the the second person claims as there are three people of his country.