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;
int ci(int a, int b) { return (a + b - 1) / b; }
double comb_(int a, int b) {
  if (a == 0) return 1;
  return comb_(a - 1, b - 1) * b / a;
}
double comb_cache[60][60];
double comb(int a, int b) {
  double &ret = comb_cache[a][b];
  if (ret >= -0.5)
    return ret;
  else
    return ret = comb_(a, b);
}
double fact(int n) {
  if (n == 0) return 1;
  return n * fact(n - 1);
}
double solve(int cur, int rest, int len, bool op, const vector<int> &bs,
             vector<vector<double> > &tbl) {
  int m = bs.size();
  if (cur == m - 1) {
    return (op ? len >= ci(rest, bs[cur]) : len <= ci(rest, bs[cur]));
    ;
  }
  double &ret = tbl[cur][rest];
  if (ret > -0.5) return ret;
  ret = 0;
  for (int i = 0; i <= rest; i++) {
    double rpos = m - cur;
    double prob = comb(i, rest) * pow(1.0 / rpos, i) *
                  pow((rpos - 1.0) / rpos, (rest - i));
    double r = solve(cur + 1, rest - i, len, op, bs, tbl);
    int c = ci(i, bs[cur]);
    if (op) {
      if (c > len)
        ret += 0;
      else
        ret += r * prob;
    } else {
      if (c < len)
        ret += r * prob;
      else
        ret += prob;
    }
  }
  return ret;
}
int main() {
  int n, m;
  cin >> n >> m;
  vector<int> bs(m);
  for (int i = 0; i < m; i++) cin >> bs[i];
  for (int i = 0; i < 60; i++)
    for (int j = 0; j < 60; j++) comb_cache[i][j] = -1;
  double ans = 0;
  for (int i = 0; i <= n; i++) {
    double t = 0;
    {
      vector<vector<double> > tbl(m + 1, vector<double>(n + 1, -1));
      t += solve(0, n, i, true, bs, tbl);
    }
    {
      vector<vector<double> > tbl(m + 1, vector<double>(n + 1, -1));
      t += solve(0, n, i, false, bs, tbl);
    }
    ans += i * (t - 1);
  }
  cout << setiosflags(ios::fixed) << setprecision(12);
  cout << ans << endl;
  return 0;
}