function main(input) {
  const a1 = parseInt(input.split(" ")[0], 10);
  const a2 = parseInt(input.split(" ")[1], 10);
  const a3 = parseInt(input.split(" ")[2], 10);
  var arr=[a1,a2,a3]
  var max=Math.max.apply(null,arr );
  var min=Math.min.apply(null, arr);
  console.log(max-min);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));