fn main() { let mut xx = String::new(); std::io::stdin().read_line(&mut xx).ok(); let xx: Vec = xx.split_whitespace().flat_map(str::parse).collect(); if 2 * xx[0] < xx[1] { println!("0"); } else if 2 * xx[0] == xx[1] { println!("4"); } else if xx[0] < xx[1] { println!("8"); } else if xx[0] == xx[1] { println!("4"); } else { println!("0"); } }