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