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