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 CPP):

Solution:
#include <bits/stdc++.h>
double bcs[51][51];
double achooseb(int a, int b) {
  if (!(0 <= a && a <= 50 & 0 <= b && b <= 50)) return 0;
  if (b < 0) return 0;
  if (bcs[a][b] >= 0) return bcs[a][b];
  if (b > a / 2) b = a - b;
  double res = 1.0;
  int i;
  for (i = 0; i < b; i++) {
    res *= (double)(a - i) / (b - i);
  }
  return bcs[a][b] = bcs[a][a - b] = res;
}
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  int a[m];
  int i, j, k, l;
  for (i = 0; i < m; i++) scanf("%d", a + i);
  for (i = 0; i <= 50; i++) {
    for (j = 0; j <= 50; j++) {
      bcs[i][j] = -1.0;
    }
  }
  double E = 0.0;
  for (i = 1; i <= n; i++) {
    int maxsizes[m];
    for (j = 0; j < m; j++) maxsizes[j] = a[j] * (i - 1);
    double table[m][n + 1];
    for (k = 0; k <= maxsizes[0] && k <= n; k++) table[0][k] = 1.0;
    for (; k <= n; k++) table[0][k] = 0.0;
    for (j = 1; j < m; j++) {
      for (k = 0; k <= n; k++) {
        table[j][k] = 0.0;
        for (l = 0; l <= k && l <= maxsizes[j]; l++)
          table[j][k] += achooseb(k, l) * table[j - 1][k - l];
      }
    }
    double total = pow(m, n);
    double prob = table[m - 1][n] / total;
    E += (1.0 - prob);
  }
  printf("%.15f\n", E);
}