Mafia
Today Don Capone celebrates the anniversary of his mafia clan. On this occasion he invited the representatives of all the clans. N (1 ≤ N ≤ 1000) people came to the celebration. Each clan brought a holiday gift – a case with a certain sum of money – an integer number of thousands of dollars (0 ≤ D_i ≤ 100). Don Capone is very fastidious, that’s why he evaluates cases by their looks, and if he likes the case, he accepts the gift; otherwise he throws it away and dismisses the guest. Don’s assistant knows how much money brought every guest, but doesn’t know what cases Don will throw. At this point he wants to calculate how many variants of sums he could get in the end.
The first line of the input file input.txt contains a number T – the number of test cases in the file. T blocks of data follow. The first line of a block contains a single number N. The second line of a block contains N numbers, separated by spaces – D_1, D_2, …, D_N. For each test case print a single line into standard output. The line must contain a single number – the number of different sum values.