import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); if (getNum(sc.next()) >= getNum(sc.next())) { System.out.println("YES"); } else { System.out.println("NO"); } } static long getNum(String s) { long ans = 0; int prev = 0; for (char c : s.toCharArray()) { if (c == '.') { ans *= 1000; ans += prev; prev = 0; } else { prev *= 10; prev += c - '0'; } } return ans; } }