501000036 - 卷题计划

Input

Output

Examples

Input

1 1 1
1
1
1
3 1 1 1 1

Output

1
时间限制 2 秒
内存限制 256 MB
统计
上一题 下一题