How many different?#464

How many different?

1 second
128 megabytes
Easy (≈1000)

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.

Input

First line contains number (1 ≤ n ≤ 20). Second line contains numbers A_1, ..., A_n (-10^5 ≤ A_i ≤ 10^5).

Output

Print the power of the set of sums of elements.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading