#include <bits/stdc++.h>
using namespace std;

int main(){
    double ma = 0, mi = 1e6, h;
    while(cin >> h){
        ma = max(ma, h);
        mi = min(mi, h);
    }
    cout << ma-mi << endl;
    return 0;
}

