#include<iostream>
using namespace std;

int main(){
	double min, max, x;
	cin >>x;
	min = x;
	max = x;
	while(cin >>x){
		if(x > max) max = x;
		if(x < min) min = x;
	}
	cout <<max - min <<endl;
	return 0;
}