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 int INF = 0x3fffffff;
const long long _INF = 0x7ffffffffffffffll;
const double EPS = 1e-9;
const double PI = acos(-1.0);
template <class T, class INT>
inline T pow(T x, INT y) {
  T res(1);
  for (T tt(x); y; y /= 2) {
    if (y & 1) res *= tt;
    tt *= tt;
  }
  return res;
}
template <class T, class INT>
inline T pow(T x, INT y, T p) {
  T res(1);
  for (T tt(x); y; y /= 2) {
    if (y & 1) res = res * tt % p;
    tt = tt * tt % p;
  }
  return res;
}
int toInt(string s) {
  int x = 0;
  istringstream sin(s);
  sin >> x;
  return x;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class INT>
inline INT gcd(INT x, INT y) {
  return y ? gcd(y, x % y) : x;
}
template <class INT>
inline int calc_bits(INT x) {
  return x ? (x & 1) + calc_bits(x >> 1) : 0;
}
const int MAXN = 50 + 1;
int n, m, a[MAXN], b[MAXN], c[MAXN];
double ans, f[MAXN][MAXN][2];
long long cnm[MAXN][MAXN];
double bin(int n, int k, int m) {
  double res = cnm[n][k];
  for (int i = 0; i < (k); ++i) res /= m;
  for (int i = 0; i < (n - k); ++i) res *= (m - 1.0) / m;
  return res;
}
double calc() {
  memset(f, 0, sizeof(f));
  f[0][0][0] = 1;
  for (int i = 0; i < (m); ++i)
    for (int j = 0; j < (n + 1); ++j)
      for (int k = 0; k < (n - j + 1); ++k) {
        if (k >= c[i]) break;
        double nim = bin(j + k, k, i + 1);
        if (k >= b[i])
          f[i + 1][j + k][1] += f[i][j][0] * nim;
        else
          f[i + 1][j + k][0] += f[i][j][0] * nim;
        f[i + 1][j + k][1] += f[i][j][1] * nim;
      }
  return f[m][n][1];
}
int main(int argc, char* argv[]) {
  cnm[0][0] = 1;
  for (int i = (1); i < (MAXN); ++i) {
    cnm[i][0] = 1;
    for (int j = (1); j < (MAXN); ++j)
      cnm[i][j] = cnm[i - 1][j] + cnm[i - 1][j - 1];
  }
  cin >> n >> m;
  for (int i = 0; i < (m); ++i) cin >> a[i];
  for (int i = (1); i < (n + 1); ++i) {
    for (int j = 0; j < (m); ++j)
      b[j] = a[j] * i - a[j] + 1, c[j] = b[j] + a[j];
    ans += i * calc();
  }
  printf("%.17lf\n", ans);
}