n = int(input()) m = int(input()) x = 100*n + 10*m print(['NO', 'YES'][x % 2 == 0])