#include <iostream>
#include <algorithm>
using namespace std;

int main(){
  int i = 0, n;
  double h[10000];

  while(cin >> h[i]){
    i++;
  }
  n = i;
  sort(h, h + n);

  cout << h[n - 1] - h[0] << endl;
}