s = int(input().replace(".", "")) t = int(input().replace(".", "")) print("YES" if t <= s else "NO")