#include using namespace std; #define int long long int32_t main() { int n, s; cin >> n >> s; vector> a(n); for (int i = 0; i < n; i++){ cin >> a[i].first; a[i].second = i; } sort(a.begin(), a.end()); for (int i = 0; i < n; i++) { if (i == 0) { if (a[i + 1].first - a[i].first > s) { cout << a[i].second + 1 << ' '; } } else if (i != n - 1) { if (a[i + 1].first - a[i].first > s) { if (a[i].first - a[i - 1].first > s) { cout << a[i].second + 1 << ' '; } } } else { if (a[i].first - a[i - 1].first > s) { cout << a[i].second + 1 << ' '; } } } }