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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
import java.util.Arrays;

public class C28 {

	static StreamTokenizer in;
	static PrintWriter out;
	
	static int nextInt() throws IOException {
		in.nextToken();
		return (int)in.nval;
	}
	
	static String nextString() throws IOException {
		in.nextToken();
		return in.sval;
	}

	public static void main(String[] args) throws IOException {
		in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
		out = new PrintWriter(System.out);

		n = nextInt();
		m = nextInt();
		a = new int[m];
		for (int i = 0; i < m; i++)
			a[i] = nextInt();
		
		double[] res = new double[n+1];
		for (int i = 1; i <= n; i++)
			res[i] += solve(i);
		
		double ans = 0;
		for (int i = 1; i <= n; i++)
			ans += (res[i] - res[i-1])*i;
		
		out.println(ans);
		
		out.flush();
	}

	static int N = 55;
	
	static int MAX;
	static int n, m;
	static int[] a;
	static double[][] memo;
	
	static double[][][] P = new double[N][N][N];
	static {
		for (int i = 1; i < N; i++)
			P[0][0][i] = 1;
		for (int k = 1; k < N; k++)
			for (int i = 0; i < N; i++)
				for (int j = 1; j < N; j++)
					P[i][j][k] = (i > 0 ? P[i-1][j-1][k]/k : 0) + P[i][j-1][k]*(k-1)/k;
	}
	
	static double solve(int len) {
		MAX = len;
		memo = new double[m][n+1];
		for (double[] aa : memo)
			Arrays.fill(aa, Double.NEGATIVE_INFINITY);
		return solve(0, n);
	}
	
	static double solve(int p, int q) {
		if (p >= m) return q == 0 ? 1 : 0;
		if (q == 0) return 1;
		if (q < 0) return 0;
		
		if (memo[p][q] != Double.NEGATIVE_INFINITY) return memo[p][q];
		
		int max = Math.min(MAX*a[p], n);
		
		double res = 0;
		
		for (int i = 0; i <= max; i++) {
			double cur = solve(p+1, q-i)*P[i][q][m-p];
			res += cur;
		}
		
		return memo[p][q] = res;
	}
}