import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a0 = sc.next(); String a1 = sc.next(); a0 = a0.replace(".", ""); a1 = a1.replace(".", ""); int version = Integer.valueOf(a0); int isVersion = Integer.valueOf(a1); String ans = ""; if(version >= isVersion) { ans = "YES"; } else { ans = "NO"; } System.out.println(ans); } }