A, B = input().split(' ') LEN = max(len(A), len(B)) A = ('0'*LEN + A)[-LEN:] B = ('0'*LEN + B)[-LEN:] print(['No','Yes'][all([int(a)>=int(b) for a, b in zip(A,B)])])