N = int(input().strip()) M = int(input().strip()) if M == 10 * N: print("Yes") else: print("No")