use proconio::input;

fn main() {
    input! {
        a : u32,
        b : u32
    }

    println!("{}", (a|b) - (a&b))
}