#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
	double n;
	vector<double> vec;
	while(cin >> n){
		vec.push_back(n);
	}

	sort(vec.begin(), vec.end());

	cout << *(vec.end() - 1) - *vec.begin() << endl;
}