#include <iostream>
#include <vector>
#include <algorithm>

#define INPUT_FROM_FILE (0) 
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
	double h;
	double min_h = 1000001;
	double max_h = 0;

#if INPUT_FROM_FILE
	//std::ifstream ifs("test.txt");
	FILE *fp = fopen("test.txt", "r");
#endif

	
#if INPUT_FROM_FILE
	while(fscanf(fp, "%lf", &h) != EOF){
#else
	while(scanf("%lf", &h) != EOF){
#endif
		min_h = std::min(min_h, h);
		max_h = std::max(max_h, h);
	}
	double dif = int((max_h - min_h) * 100 + 0.5) / 100.0;
	std::cout << dif << std::endl;
	return 0;
}

