#include "bits/stdc++.h" using namespace std; #define int long long #define REP(i, n) for (int i = 0; i < (int)n; ++i) #define RREP(i, n) for (int i = (int)n - 1; i >= 0; --i) #define FOR(i, s, n) for (int i = s; i < (int)n; ++i) #define RFOR(i, s, n) for (int i = (int)n - 1; i >= s; --i) #define ALL(a) a.begin(), a.end() #define IN(a, x, b) (a <= x && x < b) templateistream&operator >>(istream&is,vector&vec){for(T&x:vec)is>>x;return is;} templateinline void out(T t){cout << t << "\n";} templateinline void out(T t,Ts... ts){cout << t << " ";out(ts...);} templateinline bool CHMIN(T&a,T b){if(a > b){a = b;return true;}return false;} templateinline bool CHMAX(T&a,T b){if(a < b){a = b;return true;}return false;} constexpr int INF = 1e18; struct UF{ vectorpar,sz; void init(int n){ par.resize(n); sz.resize(n); for(int i=0;i> N >> A >> B; vectora(N); cin >> a; UF uf; uf.init(N); vectorimos(N); REP(i, N) { auto l = lower_bound(ALL(a), a[i] + A) - a.begin(); auto r = upper_bound(ALL(a), a[i] + B) - a.begin() - 1; if(l > r) continue; uf.unite(i, l); ++imos[l]; --imos[r]; } REP(i, N - 1) imos[i + 1] += imos[i]; REP(i, N - 1) if(imos[i] > 0) uf.unite(i, i + 1); REP(i, N) out(uf.size(i)); }