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;
import java.math.*;

public class CF28C {
	public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int M = in.nextInt();
        int w[] = new int[M + 1];
        for (int i = 1; i < M+1; i++) {
        	w[i] = in.nextInt();
        }
        
        //double C[][] = new double[N+1][N+1];
        int Ntest = N;
        double C[][] = new double[Ntest+1][Ntest+1];
        C[0][0] = 1.0; 
        for (int i = 0; i <= Ntest; i++) {
        	for (int j = 0; j <= Ntest; j++){
        		if (i == 0 && j == 0) continue;
        		if (i == 0 || j > i) {
        			C[i][j] = 0.0;
        			continue;
        		}
        		if (j == 0) {
        			C[i][j] = 1.0;
        			continue;
        		}
        		C[i][j] = C[i - 1][j - 1] + C[i - 1][j];
        	}
        }
          
//        double ans[][] = new double[N+1][M+1];
//        ans[0][0] = 0;
//        ans[0][1] = 0;
//        
//        ans[1][0] = 0;
//        ans[1][1] = 1.0;
//       for (int st = 1; st <= N; st++) {
//        	int qLast = st / w[1];
//			if (w[1] * qLast < st) {
//				qLast++;
//			}
//			ans[st][1] = qLast;
//        }
//        for (int st = 0; st <= N; st++) {
//        	for (int i = 2; i <= M; i++) {
//        		ans[st][i] = 0.0;
//        		if (st == 0) {
//        			ans[st][i] = 0.0;
//        			continue;
//        		}
//        		for (int n = 0; n <= st; n++) {
//        			int qLast = n / w[i];
//        			if (w[i] * qLast < n) {
//        				qLast++;
//        			}
//        			ans[st][i] += C[st][n] * Math.pow(1.0/i, n) * Math.pow(1.0 - 1.0/i, st - n) * 
//        					Math.max(ans[st - n][i - 1], qLast);
//        			//System.out.println("C from " + st + " on " + n + " = " + C[st][n]);
//        		}
//        	}
//        }
//        System.out.println(ans[N][M]);
	
        double prob[][][] = new double[N+1][M+1][N+1];
        for (int st = 0; st <= N; st ++) {
     	   for (int i = 0; i <= M; i++) {
     		   for (int n = 0; n <= N; n++) {
     			   prob[st][i][n] = 0.0;
     			   if ((st == 0 || i == 0) && n == 0) {
     				  prob[st][i][n] = 1.0;
     			   }
     		   }
     	   }
        }
        for (int st = 1; st <= N; st ++) {
    	   for (int i = 1; i <= M; i++) {
    		   for (int n = 0; n <= st; n++) {
    			   int qLastMax = n / w[i];
    			   if (w[i] * qLastMax < n) {
    				   qLastMax++;
    			   }
    			   for (int m = 0; m <= qLastMax; m++) {
    				   prob[st][i][qLastMax] += C[st][n] * Math.pow(1.0/i, n) * Math.pow(1.0 - 1.0/i, st - n) 
    						   					*
    						   					prob[st - n][i - 1][m];
    			   }
    			   
    			   for (int m = qLastMax + 1; m <= N; m++) {
    				   prob[st][i][m] += C[st][n] * Math.pow(1.0/i, n) * Math.pow(1.0 - 1.0/i, st - n) 
    						   					*
    						   					prob[st - n][i - 1][m];
    			   }
    	        }
    	   }
       }
       
       double result = 0;
       for (int m = 0; m <= N; m++) {
    	   result += m * prob[N][M][m];
       }
       System.out.println(result);
	}
}