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 s=new Scanner(System.in); int q=s.nextInt(); for(int qi=0;qi=miny&&y<=maxy )||( (y==miny||y==maxy)&&x>=minx&&x<=maxx ) )){ System.out.println("NO"); flag=false; break; } } if(flag==true) System.out.println("YES"); } } }