You have n coins with certain values. Your task is to find all money sums you can create using these coins.
The first line has an integer n(1≤n≤100): the number of coins.
The next line has n integers x1,x2,...,xn(1≤xi≤1000): 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.