let a = readLine()!.split(separator: " ").map({Int($0)!})
check(anim: a[0], leg: a[1])
func check(anim: Int, leg: Int) -> Void {
    if anim >= leg {
        print("no")
    } else if leg.isMultiple(of: 2) == false {
        print("No")
    } else {
        print("Yes")
    }
}