#include<iostream>
#include<set>
#include<cstdio>
using namespace std;

int main()
{
    multiset<double> h;
    double height;
    while(cin >> height)
    {
        h.insert(height);
        cout << height << endl;
    }
    double best = *(--h.end());
    double worst = *(h.begin());

    printf("%.2f\n",best-worst);
    return 0;
}