#include <bits/stdc++.h>
using namespace std;
int a[2000];
int test[2000];
int endtime[2000];
int num[2000];
bool ans[2000];
int main() {
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    ans[i] = false;
  }
  for (int i = 1; i <= k; i++) {
    endtime[i] = 0;
    test[i] = 1e9;
    num[i] = 1e9;
  }
  int m = 0;
  int ind = 1;
  int time = 0;
  while (m != n) {
    for (int i = 1; i <= k; i++) {
      if (time != 0 && endtime[i] == time) m++;
    }
    int res = m * 100 / n;
    int ost = (m * 100) % n;
    if (ost * 2 >= n) res++;
    for (int i = 1; i <= k; i++) {
      if (endtime[i] == time) {
        if (ind <= n) {
          endtime[i] = time + a[ind];
          num[i] = ind;
          test[i] = 0;
          ind++;
        } else {
          test[i] = 1e9;
          endtime[i] = 1e9;
          num[i] = 1e9;
        }
      }
      test[i]++;
      if (test[i] == res) {
        ans[num[i]] = true;
      }
    }
    time++;
  }
  int c = 0;
  for (int i = 1; i <= n; i++)
    if (ans[i]) c++;
  cout << c;
  return 0;
}
