Elective System
The students at Byteland Institute of Technology are registering electronically for classes. Registration is open for a predetermined number of time units, and each time unit is assigned a positive number called the goodness. Higher goodness values mean that the network is more likely to be available and responsive during those time units. You may log in at most times during the registration period. Each login may last a maximum of time units, and logins must not overlap with each other.
You are given a string values. The -th character of this string represents the goodness value of the ith time unit. The goodness values are given as characters '' to '', which represent values to , respectively. Choose a strategy that maximizes the total goodness of the time units during which you are logged in, and find this total goodness value.
Input
The first line of each test case containsthe values of and . The second line contains the string values that contains no more than letters '' — ''.
Output
For each test case print in a separate line the maximal possible total goodness value.