#include <bits/stdc++.h>
using namespace std;
long long proc[1000005], comp[1000005], in[1000005];
int main() {
  long long n, k, it, nractiv, nrc, j, act, ans = 0;
  cin >> n >> k;
  for (it = 1; it <= k; it++) {
    cin >> proc[it];
  }
  nractiv = k;
  nrc = 0;
  while (nractiv != 0) {
    long double act;
    act = nrc * 100;
    act /= n;
    act += 0.5;
    act = (long long)act;
    for (j = 1; j <= k; j++) comp[j]++;
    for (j = 1; j <= k; j++) {
      if (comp[j] == act && in[j] == 0 && comp[j] != 0) {
        in[j] = 1;
        ans++;
      }
    }
    for (j = 1; j <= k; j++) {
      if (in[j] != -1 && comp[j] >= proc[j]) {
        if (nrc + k < n) {
          cin >> proc[j];
          in[j] = 0;
          comp[j] = 0;
        } else
          nractiv--, in[j] = -1;
        nrc++;
      }
    }
  }
  cout << ans << '\n';
}
