#include<iostream>
using namespace std;
#include<cstdio>
#include<limits.h>
#include<vector>
#include<cfloat>
int main(){
  double mountain;
  double min=DBL_MAX;
  double max=-DBL_MAX;
  cout<<max<<" "<<min<<endl;
  while(scanf("%lf",&mountain)!=EOF){

    if(min>mountain)min=mountain;
    if(max<mountain)max=mountain;
  }
  printf("%f/n",max-min);

}