#include <iostream>

using namespace std;

int main() {
    double h;
    double high = 0, low = 1e+9;
    while (cin >> h) {
        high = max(high, h);
        low = min(low, h);
    }
    cout << high - low << endl;
    return 0;
}