import java.util.Scanner; public class N138 { public static void main(String[] args) { Scanner sca = new Scanner(System.in); String A = sca.next(); String B = sca.next(); A = A.replaceAll("\\.", ""); B = B.replaceAll("\\.", ""); int x = Integer.parseInt(A); int y = Integer.parseInt(B); System.out.println(x >= y ? "YES" : "NO"); } }