plan = int("".join(input().split()))
date = int("".join(input().split()))
if plan <=date:
    print("yes")
else:
    print("no")