import java.util.Arrays;
import java.util.Scanner;

public class Main_2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] x = new int[51];
        for (int i = 0; i < n; i++) {
            int M = scanner.nextInt();
            x[M]++;
        }
        double expection = 0;
        double temp2 = 1;
        double temp1 = 1;
        for (int i = 50; i > 0; i--) {
            if (x[i] > 0) {
                temp1 *= Math.pow(i - 1, x[i]) / Math.pow(i, x[i]);
                double pro = temp2 - temp1;
                temp2 = temp1;
                expection += i * pro;
                x[i - 1] += x[i];
            }
        }

        System.out.printf("%.2f", expection);
    }
}