4836: P2884 [USACO07MAR] Monthly Expense S
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description

Input

Output

Sample Input Copy
7 5
100
400
300
100
500
101
400
Sample Output Copy
500
HINT
