Given n coins of some value, you are asked to find out all the possible sums you can obtain with those coins.
The first line of the input contains two integers n (1 ≤ n ≤ 100).
The next line contains n space-separated integers (1 ≤ ≤ 1000) the coin values.
The program should first print the number of possible sums one can obtain with those coins on the first line. While the second line of the output should contain all the possible sums in increasing order separated by a space.