#[macro_export]
macro_rules! setup {
    { mut $input:ident: SplitWhitespace $(,)? } => {
        use std::io::Read;
        let mut buf = String::new();
        std::io::stdin().read_to_string(&mut buf).unwrap();
        let mut $input = buf.split_whitespace();
    };
}

#[macro_export]
macro_rules! parse_next {
    ($str_iter:expr) => {
        $str_iter.next().unwrap().parse().unwrap()
    };
}

fn main() {
    setup! { mut input: SplitWhitespace };

    let x: i64 = parse_next!(input);
    let y: i64 = parse_next!(input);

    macro_rules! walk {
        ($x:expr, $y:expr, $store:expr) => {{
            $store.push(($x - 2, $y - 1));
            $store.push(($x - 2, $y + 1));
            $store.push(($x - 1, $y - 2));
            $store.push(($x - 1, $y + 2));
            $store.push(($x + 1, $y - 2));
            $store.push(($x + 1, $y + 2));
            $store.push(($x + 2, $y - 1));
            $store.push(($x + 2, $y + 1));
        }};
    }

    let mut store = vec![];
    {
        store.push((0, 0));
    }
    for i in 0..store.len() {
        walk!(store[i].0, store[i].1, store);
    }
    for i in 1..store.len() {
        walk!(store[i].0, store[i].1, store);
    }
    for i in (1 + 8)..store.len() {
        walk!(store[i].0, store[i].1, store);
    }

    store.sort();
    store.dedup();

    let ans = match store.into_iter().find(|(x_i, y_i)| (*x_i, *y_i) == (x, y)) {
        Some(_) => "YES",
        None => "NO",
    };

    println!("{}", ans);
}