import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String k = in.next(); String n = in.next(); if (k.compareTo(n) < 0) { System.out.println("NO"); } else { System.out.println("YES"); } } }