#include <cmath>
#include <iostream>
#include <string>
using namespace std;

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