import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int [] a = new int [N]; int [] b = new int [N]; int [] score = new int [100]; for(int i=0; i=max){ System.out.println("YES"); }else{ System.out.println("NO"); } } }