#include using namespace std; #define REP(i, n) for(int i=0 ; (i)<(int)(n) ; (i)++) int main(void){ int n, s; cin >> n >> s; vector> p(n); REP(i, n){ cin >> p.at(i).first; p.at(i).second = i+1; } if(n == 1){ cout << 1 << endl << 1 << endl; return 0; } sort(p.begin(), p.end()); set ans; REP(i, n){ if(i == 0){ if(p.at(i+1).first-p.at(i).first > s) ans.insert(p.at(i).second); }else if(i == n-1){ if(p.at(i).first-p.at(i-1).first > s) ans.insert(p.at(i).second); }else{ if(p.at(i+1).first-p.at(i).first > s && p.at(i).first-p.at(i-1).first > s) ans.insert(p.at(i).second); } } cout << ans.size() << endl; for(auto i : ans) cout << i << ' '; cout << endl; }