#include <iostream>
#include <algorithm> // For std::max and std::min

class FiveNumbers {
private:
    int a, b, c, d, e;

public:
    // Constructor to initialize the 5 numbers
    FiveNumbers(int w, int x, int y, int z, int v) : a(w), b(x), c(y), d(z), e(v) {}

    // Returns the largest of the 5 numbers
    int Largest() const {
        return std::max({a, b, c, d, e});
    }

    // Returns the smallest of the 5 numbers
    int Smallest() const {
        return std::min({a, b, c, d, e});
    }

    // Returns the average of the 5 numbers
    double Average() const {
        return static_cast<double>(Total()) / 5;
    }

    // Returns the sum of the 5 numbers
    int Total() const {
        return a + b + c + d + e;
    }
};

int main() {
    int w, x, y, z, v;
    // Read 5 integers from input
    std::cin >> w >> x >> y >> z >> v;
    
    FiveNumbers nums(w, x, y, z, v);
    
    std::cout << "Largest: " << nums.Largest() << std::endl;
    std::cout << "Smallest: " << nums.Smallest() << std::endl;
    std::cout << "Average: " << nums.Average() << std::endl;
    std::cout << "Total: " << nums.Total() << std::endl;

    return 0;
}