#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define llong long long int main() { int n, xlb, xrb; cin >> n >> xlb >> xrb; vector> enemies(2181, vector(1281, 0)); rep(i, n) { int xl, xr, y, _y; cin >> xl >> y >> xr >> _y; for(int j=max(xl, 0); j<=min(1280, xr); j++) enemies[1680-y][j] = i+1; } set result; rep(x, 1281) { if(x < xlb || xrb < x) continue; rep(y, 2181) { if(enemies[y][x] > 0) { result.insert(enemies[y][x]); break; } } } rep(i, n) { if(result.count(i+1)) cout << "1\n"; else cout << "0\n"; } }