class stationConectivity(): def __init__(self, num_station): self.parent = [-1]*(num_station) def find(self, id): if self.parent[id]<0: return id else: self.parent[id] = self.find(self.parent[id]) return self.parent[id] def union(self, x_id, y_id): x_root = self.find (x_id) y_root = self.find(y_id) if x_root != y_root: if self.parent[x_root] > self.parent[y_root]: x_root, y_root = y_root, x_root self.parent[x_root] += self.parent[y_root] self.parent[y_root] = x_root def countReachable(self, id): return self.parent[self.find(id)]*-1 def main(): num_station, A, B = map(int, input().split()) xi = list(map(int, input().split())) railway = stationConectivity(num_station) # lはA<=x-x[l]を満たす最初の位置 # rはx-x[r]