Problem D
Fishmongers
You fish fish.
You hate fish.
You love monies.
Therefore sell fish.
To fishmongers.
For maximum profit.
Input
The first line of input contains two integers
Output
A single integer, the maximum number of monies you can obtain by selling your fish to the fishmongers.
Sample Input 1 | Sample Output 1 |
---|---|
4 3 1 2 7 5 2 4 1 5 3 3 |
66 |