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

int main() {
  double h, max_h = -1, min_h = 1000001;
  while (cin >> h)
    max_h = max(h, max_h), min_h = min(h, min_h);
  cout << max_h - min_h << endl;
}
