In ICPCCamp, people usually use coins of values 1,2,3,…,n.
Bobo was very poor, he had only a_1,a_2,a_3,…,a_n coins of values 1,2,3,…,n, respectively. He bought an item of an unknown value without making change.
The unknown item was of non-negative integer value. Find the number of possible values it may have had.
The input contains zero or more test cases, and is terminated by end-of-file. For each test case:
The first line contains one integer n (1≤n≤15).
The second line contains n integers a_1,a_2,…,a_n (0≤a_i≤109).
It is guaranteed that the number of test cases does not exceed 100, and there is at most one test case where n>10.
For each test case, output an integer which denotes the number of possibilities.