#include <bits/stdc++.h>
using namespace std;
inline void err(istringstream *iss) {}
template <typename T, typename... Args>
void err(istringstream *iss, const T &$val, const Args &...args) {
  string $name;
  *iss >> $name;
  if ($name.back() == ',') $name.pop_back();
  cout << $name << " = " << $val << "; ", err(iss, args...);
}
using ll = long long;
using ull = unsigned long long;
using ld = long double;
const ll llinf = (1ll << 61) - 1;
long n, m, K, T, Q, cn;
long a[1005];
bitset<1005> interesting;
pair<long, long> processing[155];
signed main() {
  cin.tie(NULL);
  cin >> n >> K;
  for (long i = 1; i <= n; i++) {
    cin >> a[i];
  }
  long qt = 1, ended = 0;
  for (long i = 0; i <= 200000; i++) {
    for (long j = 1; j <= K; j++) {
      if (processing[j].second == a[processing[j].first])
        ended += (processing[j].first >= 1 and processing[j].first <= n),
            processing[j] = {qt++, 1};
      else
        processing[j].second++;
    }
    long systest = (((100 * ended) << 1) + n) / ((n) << 1);
    for (long j = 1; j <= K; j++) {
      if (processing[j].first >= 1 and processing[j].first <= n and
          processing[j].second == systest)
        interesting[processing[j].first] = 1;
    }
  }
  long cnt = 0;
  for (long i = 1; i <= n; i++) {
    if (interesting[i]) cnt++;
  }
  cout << cnt << '\n';
  return 0;
}
