#include #include using namespace std; using namespace atcoder; #define rep(i,a,b) for(it i=(it)(a);i<=(it)b;i++) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define moda 998244353LL #define modb 1000000007LL #define dai 2500000000000000000LL #define sho -dai #define eps 1e-14 using it=long long; using un=unsigned long long; using db=long double; using st=string; using ch=char; using bo=bool; using P=pair; using T=tuple; using vi=vector; using vd=vector; using vs=vector; using vc=vector; using vb=vector; using vp=vector

; using sp=set

; using ss=set; using si=set; using vvi=vector; using vvs=vector; using vvb=vector; using vvc=vector; using vvp=vector; using vsi=vector; using vsp=vector; using vvsi=vector; using vvsp=vector; using vvvi=vector; using vvvvi=vector; const it dx[4]={0,1,0,-1}; const it dy[4]={1,0,-1,0}; it lod(vi &a,it k){ auto d=lower_bound(all(a),k); it e=distance(a.begin(),d); return e; } int main() { it n,s;cin>>n>>s; vp p(n);vi a(n),ko; rep(i,0,n-1)cin>>p[i].first; rep(i,0,n-1)p[i].second=i; sort(all(p)); rep(i,0,n-1)a[i]=p[i].first; rep(i,0,n-1){ it e=lod(a,a[i]+s+1)-1,f=lod(a,a[i]-s); if(e-f==0)ko.push_back(p[i].second); } cout<