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>
using namespace std;
inline long long rd() {
  long long xx = 0, ff = 1;
  char ch = getchar();
  while (ch < '0' or ch > '9') {
    if (ch == '-') ff = -1;
    ch = getchar();
  }
  while (ch >= '0' and ch <= '9') {
    xx = xx * 10 - '0' + ch;
    ch = getchar();
  }
  return xx * ff;
}
const long long N = 4e4 + 10;
const long long INF = 0x3f3f3f3f3f3f3f3f;
long long n, K, m;
long long a[N], b[N];
long long len[N];
long long poi[100], p_cnt;
long long is[N];
long long tot;
long long last[N], nex[N * 110 * 2], ver[N * 110 * 2];
inline void add(long long u, long long v) {
  nex[++tot] = last[u];
  ver[tot] = v;
  last[u] = tot;
}
long long dist[110][110];
bool vis[N];
pair<long long, long long> q[N * 10];
long long hd, ed;
void bfs(long long s, long long sign) {
  memset(vis, 0, sizeof vis);
  hd = ed = 0;
  vis[s] = 1;
  dist[sign][sign] = 0;
  q[ed++] = make_pair(s, 0);
  long long num = 1;
  while (hd != ed) {
    long long u = q[hd].first;
    long long d = q[hd++].second;
    for (long long i = last[u]; i; i = nex[i]) {
      long long r = ver[i];
      if (vis[r]) continue;
      vis[r] = true;
      if (is[r]) dist[sign][is[r]] = min(dist[sign][is[r]], d + 1);
      if (num == p_cnt) return;
      q[ed++] = make_pair(r, d + 1);
    }
  }
}
long long f[1 << 21];
int main() {
  n = rd();
  K = rd();
  m = rd();
  for (long long i = 1; i <= K; i++) a[rd()] = 1;
  for (long long i = 1; i <= m; i++) len[i] = rd();
  for (long long i = 0; i <= n; i++) {
    b[i] = a[i] ^ a[i + 1];
    if (b[i]) {
      poi[++p_cnt] = i;
      is[i] = p_cnt;
    }
  }
  memset(dist, 0x3f, sizeof dist);
  for (long long i = 0; i <= n; i++)
    for (long long j = 1; j <= m; j++) {
      if (i - len[j] >= 0) add(i, i - len[j]);
      if (i + len[j] <= n) add(i, i + len[j]);
    }
  for (long long i = 1; i <= p_cnt; i++) bfs(poi[i], i);
  memset(f, 0x3f, sizeof f);
  f[0] = 0;
  for (long long i = 0; i < (1 << p_cnt); i++) {
    long long j = 1;
    for (; j <= p_cnt; j++)
      if ((i & (1 << (j - 1))) == 0) break;
    for (long long k = j + 1; k <= p_cnt; k++)
      if (!(i & (1 << (k - 1))))
        f[i | (1 << (j - 1)) | (1 << (k - 1))] =
            min(f[i | (1 << (j - 1)) | (1 << (k - 1))], f[i] + dist[j][k]);
  }
  long long ans = f[(1 << p_cnt) - 1] == INF ? -1 : f[(1 << p_cnt) - 1];
  printf("%lld", ans);
  return 0;
}