# HKBU ICPC Seminar 4-6

J. Ms. Weasel eats chicken

### 样例

Input
5 3 1
2 1 3 4 5
1 1 1 1 1
5 3 1
1 1 1 1 1
1 2 3 4 5

Output
-1
3