a = int(input().replace('.','')) b = int(input().replace('.','')) if a-b>=0: print("YES") else: print("NO")