use proconio::input; fn main() { input! { a: usize, b: usize, } let ans = (a..=b) .filter(|n| (a + b + n) % 3 == 0) .count(); println!("{ans}"); }