import java.util.*; class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num=0; if(sc.nextInt()sc.nextInt())num++; if(num>1)System.out.println("YES"); else System.out.println("NO"); sc.close(); return; } }