var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var nums = input.trim().split('\n').map(function(n){return +n;});
 
nums.sort(function(a,b){return a-b;});
var diff = nums[nums.length - 1] - nums[0];
console.log(diff.toFixed(3));