import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); class Enemy{ int xL; int xU; int xR; int xD; int enemyID; public Enemy(int A,int B,int C,int D,int E){ this.xL=A; this.xU=B; this.xR=C; this.xD=D; this.enemyID = E; } } class enemyComparator implements Comparator { @Override public int compare(Enemy e1, Enemy e2) { return e1.xD < e2.xD ? -1 : 1; } } int enemyNum = sc.nextInt(); int xLB = sc.nextInt(); int xRB = sc.nextInt(); boolean[] hit = new boolean[enemyNum]; List enemyData = new ArrayList<>(); for(int i=0;i