newly=int(input().replace(".","")) older=int(input().replace(".","")) print("YES" if newly>=older else "NO")