fn main() { let mut xy = String::new(); std::io::stdin().read_line(&mut xy).ok(); let xy: Vec = xy.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let x = xy[0]; let y = xy[1]; println!("{}", (((x*x + y*y) as f64).sqrt() * 2.0 + 0.00000001).ceil() as usize); }