1911 - [Apio2010]特别行动队

Input

Output

Examples

Input

4 
-1 10 -20 
2 2 3 4 

Output

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