def oi(): return int(input()) def os(): return input().rstrip() def mi(): return list(map(int, input().split())) # import sys # input = sys.stdin.readline # import sys # sys.setrecursionlimit(10**8) # import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') input_count = 0 A,B = mi() flg = True A = str(A) B = str(B).rjust(len(A), "0") for a,b in zip(A,B): flg = flg and (int(a) >= int(b)) if flg: print("Yes") else: print("No")