import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double[] score = new double[n];
        double sum = 0.0;
        double max = score[0];
        double min = 100;
        for(int i=0; i<n ; i++) {
            score[i] = sc.nextDouble();
            if(score[i] > max) {
                max = score[i];
            }
            if(score[i] < min) {
                min = score[i];
            }
            sum += score[i];
        }
        System.out.println(String.format("%.2f",max) + " " + String.format("%.2f",min) + " " + String.format("%.2f",sum/n));
    }
}