Problem: Finally Fox Ciel arrived in front of her castle!

She have to type a password to enter her castle. An input device attached to her castle is a bit unusual.

The input device is a 1 × n rectangle divided into n square panels. They are numbered 1 to n from left to right. Each panel has a state either ON or OFF. Initially all panels are in the OFF state. She can enter her castle if and only if x1-th, x2-th, ..., xk-th panels are in the ON state and other panels are in the OFF state.

She is given an array a1, ..., al. In each move, she can perform the following operation: choose an index i (1 ≤ i ≤ l), choose consecutive ai panels, and flip the states of those panels (i.e. ON → OFF, OFF → ON).

Unfortunately she forgets how to type the password with only above operations. Determine the minimal number of operations required to enter her castle.

Input

The first line contains three integers n, k and l (1 ≤ n ≤ 10000, 1 ≤ k ≤ 10, 1 ≤ l ≤ 100), separated by single spaces.

The second line contains k integers x1, ..., xk (1 ≤ x1 < x2 < ... < xk ≤ n), separated by single spaces.

The third line contains l integers a1, ..., al (1 ≤ ai ≤ n), separated by single spaces. It is possible that some elements of the array ai are equal value.

Output

Print the minimal number of moves required to type the password. If it's impossible, print -1.

Examples

Input

10 8 2
1 2 3 5 6 7 8 9
3 5


Output

2


Input

3 2 1
1 2
3


Output

-1

Note

One possible way to type the password in the first example is following: In the first move, choose 1st, 2nd, 3rd panels and flip those panels. In the second move, choose 5th, 6th, 7th, 8th, 9th panels and flip those panels.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
void Get(int &T) {
  char C;
  bool F = 0;
  for (; C = getchar(), C < '0' || C > '9';)
    if (C == '-') F = 1;
  for (T = C - '0'; C = getchar(), C >= '0' && C <= '9'; T = T * 10 + C - '0')
    ;
  F && (T = -T);
}
int N, K, L;
int A[10005];
int Pos[25];
struct E {
  int V, Next;
} Edge[2500005];
int EdgeTop;
int Head[10005];
void Add(int U, int V) {
  Edge[++EdgeTop] = (E){V, Head[U]};
  Head[U] = EdgeTop;
}
void Init() {
  int X;
  Get(N);
  Get(K);
  Get(L);
  for (int i = 1; i <= K; i++) {
    Get(X);
    A[X] = 1;
  }
  N++;
  for (int i = N; i >= 1; i--) {
    A[i] = (A[i] != A[i - 1]);
  }
  K = 0;
  for (int i = 1; i <= N; i++) {
    if (A[i] == 1) {
      K++;
      Pos[K] = i;
    }
  }
  for (int k = 1, W; k <= L; k++) {
    Get(W);
    for (int i = 1, j = W + 1; j <= N; i++, j++) {
      Add(i, j);
      Add(j, i);
    }
  }
}
int F[10005];
int Visited[10005];
int Queue[15005];
void SPFA(int X) {
  memset(F, 0x2f, sizeof F);
  int L, R;
  Queue[L = R = 1] = X;
  F[X] = 0;
  Visited[X] = 1;
  for (;;) {
    for (int i = Head[Queue[L]]; i; i = Edge[i].Next) {
      if (F[Edge[i].V] > F[Queue[L]] + 1) {
        F[Edge[i].V] = F[Queue[L]] + 1;
        if (!Visited[Edge[i].V]) {
          Visited[Edge[i].V] = 1;
          R++;
          if (R > 15000) R = 1;
          Queue[R] = Edge[i].V;
        }
      }
    }
    Visited[Queue[L]] = 0;
    if (L == R) break;
    L++;
    if (L > 15000) L = 1;
  }
}
int W[25][25];
int G[1048605];
int DP(int i) {
  if (G[i] != -1) return G[i];
  G[i] = 0x2f2f2f2f;
  int Min = 0;
  for (int k = K; k >= 1; k--) {
    if ((((i) >> (k - 1)) & 1)) Min = k;
  }
  for (int k = K; k >= 1; k--)
    if (((((i) >> (k - 1)) & 1)) && k != Min) {
      int Ans0 = DP(i & ~((1) << (k - 1)) & ~((1) << (Min - 1))) + W[Min][k];
      if (G[i] > Ans0) G[i] = Ans0;
    }
  return G[i];
}
int Ans;
void Work() {
  for (int k = 1; k <= K; k++) {
    SPFA(Pos[k]);
    for (int p = 1; p <= K; p++) W[k][p] = F[Pos[p]];
  }
  memset(G, 0xff, sizeof G);
  G[0] = 0;
  Ans = DP((1 << K) - 1);
}
void Output() {
  if (Ans >= 0x2f2f2f2f)
    puts("-1");
  else
    printf("%d\n", Ans);
}
int main() {
  Init();
  Work();
  Output();
  return 0;
}