#include <iostream>
using namespace std;

int main(){
  double x;
  double max_h = 0, min_h = 999999999;

  while(cin >> x){
    max_h = max(max_h, x);
    min_h = min(min_h, x);
  }

  cout << max_h - min_h << endl;
}