import sys, time, random from collections import deque, Counter, defaultdict def debug(*x):print('debug:',*x, file=sys.stderr) input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 61 - 1 mod = 998244353 x, y = input().split() L = max(len(x), len(y)) x = x.zfill(L) y = y.zfill(L) ans = 'Yes' for i in range(L): if x[i] >= y[i]: pass else: ans = 'No' print(ans)