use std::cmp::min; use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let a: i64 = itr.next().unwrap().parse().unwrap(); let b: i64 = itr.next().unwrap().parse().unwrap(); let c: i64 = itr.next().unwrap().parse().unwrap(); let x = (a - b).abs(); let y = (a - c).abs(); let z = (b - c).abs(); println!("{}", min(x, min(y, z))) }