A,B = input().split() X = max(len(A),len(B)) for a,b in zip(A.zfill(X),B.zfill(X)): if a < b: print ("No") break else: print ("Yes")