#include <bits/stdc++.h>
using namespace std;
void Print(const vector<long long> &a) {
  cout << endl;
  for (int i = 1; i < (int)a.size(); ++i) {
    cout << a[i] << " ";
  }
  cout << endl;
}
int main() {
  long long n;
  long long maxV;
  cin >> n >> maxV;
  vector<long long> a(n + 1);
  long long dd = 0;
  vector<long long> d(n + 1);
  vector<long long> sum(n + 1);
  sum[0] = 0;
  d[0] = 0;
  long long buf = 0;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    sum[i] = sum[i - 1] + a[i];
    d[i] = buf - (i - 1) * (n - i) * a[i];
    buf += a[i] * (i - 1);
  }
  long long k = 0;
  vector<long long> f;
  f.push_back(0);
  for (long long i = 1; i <= n; ++i) {
    long long _buf = ((i - 1) * (n - i) - (i - k - 1) * (n - i)) * a[i] -
                     k * (sum[i - 1] - sum[f[k]]);
    if (d[i] + dd + _buf < maxV) {
      f.push_back(i);
      cout << i << endl;
      dd += -a[i] * (i - 1) - k * (sum[i - 1] - sum[f[k]]);
      ++k;
    }
  }
  return 0;
}
