package y1; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int X,Y; int N; int[] A = new int[80]; X = s.nextInt(); Y = s.nextInt(); N = s.nextInt(); for(int i=0;i A[i+1]){ fail=true; } } if(fail == true){ System.out.println("NO"); }else{ System.out.println("YES"); } } }