a, b = input().split() if len(a) < len(b): print("No") exit() for i in range(len(b)): if int(a[-1-i]) < int(b[-1-i]): print("No") exit() print("Yes")