#include <iostream>
#include <limits>
using namespace std;
int main() {
  double e, min = numeric_limits<double>::max(), max = 0;
  while (cin >> e) {
    if (e < min) min = e;
    if (e > max) max = e;
  }
  cout << max - min << endl;
}