A,B = input().split() A_num = int(A) B_num = int(B) A = "0"*max(len(B)-len(A),0) + A B = "0"*max(len(A)-len(B),0) + B A = list(map(int,reversed(list(A)))) B = list(map(int,reversed(list(B)))) for a,b in zip(A,B): if not(a >= b): print("No") exit() print("Yes")