UOJ Logo 黑暗爆炸OJ

DARKBZOJ

#4996. [Usaco2017 Feb]Why Did the Cow Cross the Road II

统计 下载数据

Description

Input

Output

Sample Input

10 6 5
2
10
1
5
9

Sample Output

1

Hint

Source

Silver