Yunho owns a convenience store with an unusual pay scheme.
The amount of work differs from day to day, so the pay for each day is fixed in advance.
Yunho pays the exact daily wage on the same day it is earned.
He lets an employee work only the number of days agreed on.
He never hires anyone back after they quit. So once hired, you must work every day from your first day to your last, with no day off in between.
Junsu has to pay rent in n+1 days, so he wants a job at Yunho's store. From the pay records left by people who quit earlier, he learned the daily wage for every day from day 1 to day n. He also has an exam to prepare for, so he can work at most m days.
Junsu can work only on consecutive days. Find the largest amount he can earn.
Input
The first line contains the number of days left before rent is due, n (1≤n≤100,000), and the largest number of days Junsu can work, m (0≤m≤n), separated by a space.
The second line contains the daily wages Ti for day 1 through day n in order (0<Ti≤1,000,000).
Output
Print the largest amount Junsu can earn on one line.