﻿using System;

class ThreeNumbers
{
    static void Main()
    {
        decimal firstNum = decimal.Parse(Console.ReadLine());
        decimal secondNum = decimal.Parse(Console.ReadLine());
        decimal thirdNum = decimal.Parse(Console.ReadLine());

        decimal mean = (firstNum + secondNum + thirdNum) / 3;

        decimal maximum = Math.Max(Math.Max(firstNum, secondNum), thirdNum);
        decimal minimum = Math.Min(Math.Min(firstNum, secondNum), thirdNum);

        Console.WriteLine(maximum);
        Console.WriteLine(minimum);
        Console.WriteLine("{0:F2}", mean);
    }
}