You have coins with certain values. Your task is to find all money sums you can create using these coins.
The first line has an integer : the number of coins.
The next line has integers : the values of the coins.
In the first line print the number of distinct money sums.
In the second line print all possible sums in increasing order.