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>
using namespace std;
const double pi = acos(-1.0);
int n, m;
int a[64];
double d[52][52][52];
double cnk[52][52];
int main() {
  memset(cnk, 0, sizeof cnk);
  ;
  cnk[0][0] = 1;
  for (int i = 0, _n = (52); i < _n; i++)
    if (i > 0)
      for (int j = 0, _n = (52); j < _n; j++)
        if (j == 0)
          cnk[i][0] = 1;
        else
          cnk[i][j] = cnk[i - 1][j - 1] + cnk[i - 1][j];
  scanf("%d%d", &n, &m);
  for (int i = 0, _n = (m); i < _n; i++) {
    scanf("%d", a + i);
  }
  memset(d, 0, sizeof d);
  ;
  d[0][0][0] = 1;
  for (int i = 0, _n = (m); i < _n; i++)
    for (int _b = (n), here = (0); here <= _b; here++) {
      int que = (here + a[i] - 1) / a[i];
      for (int _b = (n - here), was = (0); was <= _b; was++)
        for (int _b = (n), mxq = (0); mxq <= _b; mxq++)
          d[i + 1][was + here][max(mxq, que)] +=
              d[i][was][mxq] * cnk[was + here][here];
    }
  double denom = 1;
  for (int i = 0, _n = (n); i < _n; i++) denom *= m;
  double res = 0;
  for (int _b = (n), mxq = (0); mxq <= _b; mxq++) res += mxq * d[m][n][mxq];
  res /= denom;
  printf("%.15lf\n", res);
  return 0;
}