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.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.TreeSet;

public class Main {
	static long [][] comb; // Initialize it with -1 
	static long nCr2(int n, int k)		// O(n * k)
	    {
	        if(n < k)
	            return 0;
	        if(k == 0 || k == n)		//may add k == 1 as a base case for fast calculations
	            return 1;
	        if(comb[n][k] != -1)
	            return comb[n][k];
	        if(n - k < k)
	            return comb[n][k] = nCr2(n, n - k);		//reduce k to n - k
	        return comb[n][k] = nCr2(n - 1, k - 1) + nCr2(n - 1 , k);
	    }

	static int m;
	static int room[];
	static double memo [][][];
	static double dp (int remS , int roomIdx , int maxQueue) {
		if (roomIdx == m)
			if (remS == 0) return maxQueue;
			else return 0;
		
		if (memo[remS][roomIdx][maxQueue] != -1) 
			return memo[remS][roomIdx][maxQueue];
		
		double ans = 0.0;
		for (int i = 0 ; i <= remS ; ++ i) {
			int maxQueueHere = (i + room[roomIdx] - 1) / room[roomIdx] ;
			if (i != 0)
				ans += (double)nCr2(remS, i) * (1.0 / (Math.pow(m, i))) * dp(remS - i, roomIdx + 1, Math.max(maxQueue, maxQueueHere));
			else ans += dp(remS, roomIdx + 1, maxQueue);
		}
		return memo[remS][roomIdx][maxQueue] = ans;
	}
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		m = sc.nextInt();
		room = new int[m];
		comb = new long[n + 1][n + 1];
		for (int i = 0 ; i <= n ; ++ i)
			Arrays.fill(comb[i], -1);
		memo = new double[n + 1][m + 1][n + 1];
		for (int i = 0 ; i <= n ; ++ i)
			for (int j = 0 ; j <= m ; ++ j)
				Arrays.fill(memo[i][j], - 1);
		for (int i = 0 ; i < m ; ++ i) room[i] = sc.nextInt();
		System.out.println(dp (n , 0 , 0));
	}
}