#include <iostream>
using namespace std;
int main(void){
    double high,max=0,min=1000000;
    for(int i=0; i<50; i++){
        cin >> high;
        if(max<high)        max=high;
        else if(high<min)   min=high;
    }
    cout << max-min << endl;
}
