fn main() { let mut xx = String::new(); std::io::stdin().read_line(&mut xx).ok(); let xx: Vec<&str> = xx.split_whitespace().collect(); let ff: Vec = xx.clone().into_iter().flat_map(str::parse).collect(); if xx[0] == xx[1] { println!("{}", ff[0].hypot(ff[0])); } else { let longer = ff[0].max(ff[1]); let shorter = ff[0].min(ff[1]); println!("{}", (longer.powi(2) - shorter.powi(2)).sqrt()); } }