n = gets.to_i m = gets.to_i YES = 'Yes' NO = 'No' if m % 2 == 1 puts NO elsif n % 2 == 0 puts YES elsif m >= 10 puts YES else puts NO end