Problem: There are n students living in the campus. Every morning all students wake up at the same time and go to wash. There are m rooms with wash basins. The i-th of these rooms contains ai wash basins. Every student independently select one the rooms with equal probability and goes to it. After all students selected their rooms, students in each room divide into queues by the number of wash basins so that the size of the largest queue is the least possible. Calculate the expected value of the size of the largest queue among all rooms.

Input

The first line contains two positive integers n and m (1 ≤ n, m ≤ 50) — the amount of students and the amount of rooms. The second line contains m integers a1, a2, ... , am (1 ≤ ai ≤ 50). ai means the amount of wash basins in the i-th room.

Output

Output single number: the expected value of the size of the largest queue. Your answer must have an absolute or relative error less than 10 - 9.

Examples

Input

1 1
2


Output

1.00000000000000000000


Input

2 2
1 1


Output

1.50000000000000000000


Input

2 3
1 1 1


Output

1.33333333333333350000


Input

7 5
1 1 2 3 1


Output

2.50216960000000070000

Solution (in JAVA):

Solution:


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

public class C {
    static double[][][] C;
    static double[][][] DP;
    static int[] B;
    static int m;
    static int n;

    public static double get(int w, int s, int max) {
        if (w + 1 == m)
            return Math.max((int) (Math.ceil(s * 1.0 / B[w])), max);
        if (DP[w][s][max] > -0.5)
            return DP[w][s][max];
        double res = 0;
        for (int i = 0; i <= s; i++)
            res += C[s][i][m - w]
                    * get(w + 1, s - i,
                            Math.max(max, (int) (Math.ceil(i * 1.0 / B[w]))));
        return DP[w][s][max] = res;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        n = in.nextInt();
        m = in.nextInt();
        B = new int[m];
        DP = new double[m + 1][n + 1][n + 1];
        for (int i = 0; i <= m; i++)
            for (int j = 0; j <= n; j++)
                Arrays.fill(DP[i][j], -1);
        for (int i = 0; i < m; i++)
            B[i] = in.nextInt();
        C = new double[n + 1][n + 1][m + 1];
        for (int k = 1; k <= m; k++) {
            C[0][0][k] = 1;
            for (int i = 1; i <= n; i++)
                for (int j = 0; j <= n; j++)
                    if (j == 0)
                        C[i][j][k] = C[i - 1][j][k] * (k - 1) / k;
                    else
                        C[i][j][k] = C[i - 1][j - 1][k] / k + C[i - 1][j][k]
                                * (k - 1) / k;
        }
        System.out.println(get(0, n, 0));
    }
}