a, b = input().split() a = a.zfill(10) b = b.zfill(10) print("Yes" if all(int(x) >= int(y) for x, y in zip(a, b)) else "No")