#include <iostream>
using namespace std;
int main(){
  double m,M,yama;
  M = 0;m = 10000000;
  while( cin >> yama){
  if(M < yama)M = yama;
  if(m > yama)m = yama;
  }
  cout << M-m << endl;
  return 0;
}