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>
template <class T>
bool chmax(T &a, const T &b) {
  return (a < b) ? (a = b, 1) : 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  return (b < a) ? (a = b, 1) : 0;
}
using namespace std;
using ll = long long;
const int inf = 1 << 20;
const int nmax = 10010;
bool a[nmax], b[nmax];
int c[110];
vector<int> graph[nmax];
vector<int> idx;
int dist[nmax];
int cost[25][25];
void bfs(int n) {
  for (int i = int(0); i < int(n); ++i) {
    fill(dist, dist + nmax, inf);
    queue<int> q;
    dist[idx[i]] = 0, q.push(idx[i]);
    while (!q.empty()) {
      int v = q.front();
      q.pop();
      for (auto &v2 : graph[v])
        if (chmin(dist[v2], dist[v] + 1)) q.push(v2);
    }
    for (int j = int(0); j < int(n); ++j) cost[i][j] = dist[idx[j]];
  }
}
int dp[1 << 20];
int main(void) {
  int n, k, l;
  cin >> n >> k >> l;
  for (int i = int(0); i < int(k); ++i) {
    int in;
    cin >> in;
    a[in] = 1;
  }
  for (int i = int(0); i < int(n + 1); ++i)
    if (a[i] ^ a[i + 1]) idx.push_back(i);
  for (int i = int(0); i < int(l); ++i) cin >> c[i];
  for (int i = int(0); i < int(n); ++i) {
    for (int j = int(0); j < int(l); ++j)
      if (i + c[j] <= n) {
        graph[i].push_back(i + c[j]);
        graph[i + c[j]].push_back(i);
      }
  }
  int m = idx.size();
  bfs(m);
  fill(dp, dp + (1LL << m), inf), dp[0] = 0;
  for (int mask = int(0); mask < int((1LL << m)); ++mask)
    for (int j = int(0); j < int(m); ++j)
      for (int i = int(0); i < int(j); ++i) {
        if ((mask & (1LL << i)) == 0) continue;
        if ((mask & (1LL << j)) == 0) continue;
        int pmask = mask ^ (1LL << i) ^ (1LL << j);
        chmin(dp[mask], dp[pmask] + cost[i][j]);
      }
  int ans = dp[(1LL << m) - 1];
  if (ans >= inf)
    cout << -1 << endl;
  else
    cout << ans << endl;
  return 0;
}