import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String verA = sc.next(); String verB = sc.next(); String[] arrayVerA = verA.split("\\.", 0); String[] arrayVerB = verB.split("\\.", 0); String plainVerA = "", plainVerB = ""; for(int i = 0; i < arrayVerA.length; i++) { plainVerA+=arrayVerA[i]; plainVerB+=arrayVerB[i]; } int intPlainVerA = Integer.parseInt(plainVerA); int intPlainVerB = Integer.parseInt(plainVerB); if(intPlainVerA >= intPlainVerB) { System.out.println("YES"); } else { System.out.println("NO"); } } }