#include<iostream>

using namespace std;

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