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) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner sc = new Scanner(System.in); long q = sc.nextLong(); for(int i=0;i points[j][0]){ minX = points[j][0]; } if(maxX == null || maxX < points[j][0]){ maxX = points[j][0]; } points[j][1] = sc.nextInt(); if(minY == null || minY > points[j][1]){ minY = points[j][1]; } if(maxY == null || maxY < points[j][1]){ maxY = points[j][1]; } } if(n==2){ System.out.println("YES"); continue; } for(int j=0;j