For each given amount, your program should print to the standard output what Stanescu should enter to get maximal number of money. The output should:
- consists only of integers and the '^' operator between them.
- pass the check of the first module and be as much as possible for the second.
- not contain the number 1 (it is useless anyway).
If more than one answers exist, output the one whose first number is minimal, if still more exist, choose the one whose second number is minimal and so on.