#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
int main() {
	double a;
	cin >> a;
	double minn, maxx;
	minn = a;
	maxx = a;
	while (cin >> a){
		maxx = max(a, maxx);
		minn = min(a, minn);
		printf("%6f", maxx - minn);
		cout << endl;
	}
	char c;
	cin >> c;
}