A, B = input().split() A = list(A) B = list(B) N = len(A) M = len(B) while len(B) < len(A): B.insert(0, '0') while len(A) < len(B): A.insert(0, '0') isok = True for i in range(len(A)): if not (A[i] >= B[i]): isok = False if isok: print("Yes") else: print("No")