import java.util.ArrayList; import java.util.Scanner; public class Main { static ArrayList

list = new ArrayList<>(); static public class P{ int yen,karasa; P(int a,int b){ this.yen = a; this.karasa = b; }public boolean buy(int a,int b){ if(a<=yen&&karasa<=b){ return true; }return false; } } static public void Make_P(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i = 0;i