#!python # -*- coding: utf-8 -*- class Enemy(object): def __init__(self, XL, YU, XR, YD, n): self.n = n self.XL = XL self.YU = YU self.XR = XR self.YD = YD def __repr__(self): return str(self.n) def __lt__(self, e): return self.YD < e.YD def main(): N, xLB, xRB = map(int, input().split()) beam = [0 for i in range(1280)] enemys = [] for n in range(N): enemys.append(Enemy(*map(int, input().split()), n + 1)) enemys.sort() for enemy in enemys: for x in range(max(0, enemy.XL), min(enemy.XR + 1, 1280)): beam[x] = enemy.n a = set(beam[xLB:xRB]) # print(beam[xLB:xRB].index(5)) # print(*beam[xLB:xRB], sep='') for i in range(1, N + 1): if i in a: print(1) else: print(0) return 0 if __name__ == '__main__': main()