#include <iostream>
using namespace std;

float a;
float min = 1000000;
float max = 0;

int main(){
    while(cin >> a){
        if(a < min) min = a;  
        if(a > max) max = a; 
        count++;     
    }
    cout << max - min << endl; 
}
