There are coins available in various fixed denominations, expressed in kopecks (for example, and kopecks), and they are available in unlimited quantities. Write a program, COINS, that:
Determines if a given amount (in kopecks) can be formed using the available coin denominations.
If possible, represents this amount using the fewest number of coins.
The input file begins with the amount (0 \leq S \leq 1000000000) on the first line. The second line contains , the number of different denominations (1 \leq N \leq 20). The following lines list the denominations A_1, A_2, \ldots, A_N in ascending order, where each denomination satisfies 0 < A_1 < A_2 < \ldots < A_N \leq 1000000000.
The output file should start with the symbol "+" on the first line if the amount can be represented using the given denominations, or the symbol "-" if it cannot. If a representation is possible, the subsequent lines should specify the number of coins of each denomination required to form the amount using the minimum number of coins.
Ejemplo 1