function Main(input) {
  input = input.trim()
  input = input.split(" ").map(Number);
  input.sort(function(a,b){
        if( a < b ) return -1;
        if( a > b ) return 1;
        return 0;
});
  console.log(Math.abs(input[0]-input[2]));
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));