const MOD: usize = 1e9 as usize + 7; fn main() { let mut ab = String::new(); std::io::stdin().read_line(&mut ab).ok(); let ab: Vec = ab.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let a = ab[0]; let b = ab[1]; let xodd = (a+1)/2*2; let xeven = a/2*2+1; let yodd = (b+1)/2*2; let yeven = b/2*2+1; let odds = xodd % MOD * (yodd % MOD) % MOD; let evens = xeven % MOD * (yeven % MOD) % MOD; println!("{}", (odds + evens) % MOD); }