2288 - 【POJ Challenge】生日礼物

Input

Output

Examples

Input

5 2 
2 -3 2 -1 2

Output

5
Time Limit 1 second
Memory Limit 128 MB
Stats
上一题 下一题