"use strict"
const Main = (input) =>{
  let xs = input.trim().split(" ").map(v=>parseInt(v,10));
    if(xs[0] == 1){
    console.log("YES");
    }else if(xs[0]%2 == 0 && xs[2]%2 ==0 || xs[0]%2 == 1 && xs[2]%2 ==1 ){
    console.log("YES");
    }else{
    console.log("NO");
    }
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));