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

int main() {
    double ma = -1, mi = 1e9;
    double d;
    while(cin >> d) {
        ma = max(ma, d);
        mi = min(mi, d);
    }
    cout << ma - mi << endl;
}
