class UnionFind: def __init__(self, n=1): self.parent = [i for i in range(n)] self.rank = [0] * n def find(self, x): if self.parent[x] == x: return x else: self.parent[x] = self.find(self.parent[x]) return self.parent[x] def union(self, x, y): x = self.find(x) y = self.find(y) if x != y: if self.rank[x] < self.rank[y]: x, y = y, x if self.rank[x] == self.rank[y]: self.rank[x] += 1 self.parent[y] = x def is_same(self, x, y): return self.find(x) == self.find(y) from bisect import bisect_left, bisect_right from collections import Counter N, A, B = map(int, input().split()) X = list(map(int, input().split())) uf = UnionFind(N) S = [0] * (N+1) for i, xi in enumerate(X): S[i] += S[i-1] if S[i] and i < N-1: uf.union(i, i+1) li = bisect_left(X, xi+A) ri = bisect_right(X, xi+B) for j in range(li, ri): uf.union(i, j) if li != ri: S[li] += 1 S[ri-1] -= 1 g = [uf.find(i) for i in range(N)] cnt = Counter(g) for gi in g: print(cnt[gi])