#include<bits/stdc++.h>#define ll long longusingnamespace std;
int l, n, m;
// l:河的宽度// n:石头的数量// m:走的最大距离 int a[505];
int minn = 2147483647;
voiddfs(int x, int step){
// x:当前走到了第x块石墩// step:当前走的步数 if (a[x] == l) {
if (step < minn) minn = step;
return;
}
for (int i = x; i <= n; ++i) {
if (m >= a[i] - x) {
dfs(x + i, step + 1);
return;
}
}
}
intmain(){
// freopen("xxx.in", "r", stdin);// freopen("xxx.out", "w", stdout);
cin >> l >> n >> m;
for (int i = 1; i <= n; ++i)
cin >> a[i];
dfs(0, 0);
cout << minn;
return0;
}