import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int Q=in.nextInt(); for(int q=0;qX[i])?X[i]:Xmin; Xmax=(XmaxY[i])?Y[i]:Ymin; Ymax=(Ymax