Tenshi is a CS student in SUSTech with an initial coding level .
Tenshi meets coders in the campus, the
of which has a coding level
.
He can choose to challenge some or all of these coders in any order he wants.
If his current coding level is greater than the coder he challenges, Tenshi's coding level will be increased by that coder's coding level.
Tenshi can challenge each coder at most once.
Tenshi would be grateful if you tell him the maximum coding level he can achieve.
The input consists of:
One line containing two integers
seperated by a space.
One line containing
integers
seperated by spaces.
Output a single integer indicating the maximum coding level Tenshi can achieve.