import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int q = in.nextInt(); for(int j=0; jx2) x2=x[i]; if(x[i]y2) y2=y[i]; if(y[i]