#include <stdio.h>

int main() {
    double max = 0.0;
    double min = 100.0;
    double num = 0;
    int n = 0;
    int i = 0;
    double sum = 0.0;
    scanf("%d",&n);
    for(i = 0;i<n;i++)
    {
        scanf("%lf ",&num);
        sum+=num;
        if(num>max)
        {
            max = num;
        }
        if(num<min)
        {
            min = num;
        }
    }
    printf("%.2lf %.2lf %.2lf",max,min,sum/n);
    return 0;
}