n = int(input()) m = int(input()) print("Yes" if m == 10 * n else "No")