function Main(input){
  var arr = input.split(" ").map(x => parseInt(x,10));
  var a = Math.max.apply(null,arr);
  var b = Math.min.apply(null,arr);
  console.log(a - b);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
function Main(input){
  var arr = input.split(" ").map(x => parseInt(x,10));
  var a = Math.max.apply(null,arr);
  var b = Math.min.apply(null,arr);
  console.log(a - b);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));