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.Scanner;

public class C {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt(), M = sc.nextInt();
        int[] A = new int[M];
        for (int i = 0; i < M; ++i)
            A[i] = sc.nextInt();

        double[][] C = new double[64][64];
        for (int i = 0; i < 64; ++i)
            for (int j = 0; j <= i; ++j)
                if (j == 0 || j == i)
                    C[i][j] = 1;
                else
                    C[i][j] = C[i - 1][j] + C[i - 1][j - 1];

        double[][] pow1 = new double[64][64];
        for (int i = 0; i < 64; ++i)
            for (int j = 0; j < 64; ++j)
                pow1[i][j] = Math.pow(i / (i + 1.), j);

        double[][] pow2 = new double[64][64];
        for (int i = 0; i < 64; ++i)
            for (int j = 0; j < 64; ++j)
                pow2[i][j] = Math.pow(1. / (i + 1.), j);

        double[][][] P = new double[M][N + 1][N + 1];
        double[][][] ACC = new double[M][N + 1][N + 1];
        for (int i = 0; i < M; ++i) {
            for (int j = 0; j <= N; ++j) {
                for (int k = 0; k <= N; ++k) {
                    P[i][j][k] = 0;

                    if (i == 0) {

                        int sz = j / A[i] + (j % A[i] == 0 ? 0 : 1);
                        if (sz == k)
                            P[i][j][k] = 1;
                        else
                            P[i][j][k] = 0;

                    } else {

                        for (int t = 0, sz; t <= j; ++t) {
                            sz = (j - t) / A[i] + ((j - t) % A[i] == 0 ? 0 : 1);
                            double f = C[j][j - t] * pow1[i][t] * pow2[i][j - t];
                            if (sz == k)
                                P[i][j][k] += f * ACC[i - 1][t][k];
                            else if (sz < k)
                                P[i][j][k] += f * P[i - 1][t][k];
                        }

                    }

                    ACC[i][j][k] = (k == 0 ? 0 : ACC[i][j][k - 1]) + P[i][j][k];
                }
            }
        }

        double result = 0;
        for (int i = 0; i <= N; ++i)
            result += P[M - 1][N][i] * i;
        System.out.println(result);
    }

}