import java.util.*; public class Main1 { 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"); } } }