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 u=0;u a[i][0]) minx = a[i][0]; if(miny > a[i][1]) miny = a[i][1]; if(maxx < a[i][0]) maxx = a[i][0]; if(maxy < a[i][1]) maxy = a[i][1]; } for(int i=0;i