4854: P3662 [USACO17FEB] Why Did the Cow Cross the Road II 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
10 6 5
2
10
1
5
9
Sample Output Copy
1