import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { String s = sc.next(); String c = sc.next(); int is = Integer.valueOf(s.replaceAll("\\.", "")); int ic = Integer.valueOf(c.replaceAll("\\.", "")); if (ic <= is) { System.out.println("YES"); } else { System.out.println("NO"); } } }