use proconio::input; fn main() { input! { x: u8, y: u8, } let ans = if x & !y != 0 { 0 } else { 1 << x.count_ones() }; println!("{ans}"); }