#include <iostream>

using namespace std;

int main()
{
  double n, h = 0.0, l = 999999999.0;
  int i = 5;

  while (i--){
    cin >> n;
    h = max(h, n);
    l = min(l, n);
  }

  cout << h - l << endl;
}