import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int q=sc.nextInt(); outer:for(int x=0;xx2) x2=a[i][0]; if(a[i][1]y2) y2=a[i][1]; } for(int i=0;i