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