n, m = map(int, input().split()) if m % 2 == 1: print('NO') else: if (n + m//10) % 2 == 0: print('YES') else: print('NO')