For the given set of integers A_1, ..., A_n find the number of different numbers, representing the sum of the elements of nonempty subsets of a given set. In other words, determine the power of the set of sums of elements of all kinds of nonempty subsets of a given set.
First line contains number (1 ≤ n ≤ 20). Second line contains numbers A_1, ..., A_n (-10^5 ≤ A_i ≤ 10^5).
Print the power of the set of sums of elements.
Example 1
Example 2