2288 - 【POJ Challenge】生日礼物

Input

Output

Examples

Input

5 2 
2 -3 2 -1 2

Output

5
时间限制 1 秒
内存限制 128 MB
统计
上一题 下一题