#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  vector<double> high;
  double h;
  while(cin >>h) high.push_back(h);
  sort(high.begin(),high.end());
  cout <<high[high.size()-1]-high[0]<<endl;
  return 0;
}