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

int main(){
    double d;
    vector<double> v;
    while(cin >> d) v.push_back(d);
    sort(v.begin(), v.end());
    printf("%.9f\n", v.back() - v.front());
}