use proconio::input; fn main() { input! { a:isize, b:isize, } let max_ok_dish = a.min(b) * 2; let min_ng_dish = a + b - max_ok_dish; if max_ok_dish >= min_ng_dish { let ans = (a + b) % 2; println!("{}", ans); return; } let ans = min_ng_dish - max_ok_dish; println!("{}", ans); }