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 long long mod = 1e9 + 7;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
long long powm(long long a, long long b, long long m);
vector<long double> mul(vector<long double> &a, vector<long double> &b,
                        long long sizes) {
  vector<long double> c(a.size() + sizes - 1, 0);
  for (long long i = 0; i < a.size(); i++)
    for (long long j = 0; j < sizes; j++) c[i + j] += a[i] * b[j];
  return c;
}
long long a[60];
signed main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n, m;
  cin >> n >> m;
  for (long long i = 1; i <= m; i++) cin >> a[i];
  vector<long double> hola;
  hola.push_back(0);
  long double fact[61];
  fact[0] = 1;
  vector<long double> te;
  te.push_back(1);
  for (long long i = 1; i <= 60; i++) {
    fact[i] = fact[i - 1] / i;
    te.push_back(fact[i]);
  }
  for (long long i = 1; i <= n + 1; i++) {
    vector<long double> res;
    res.push_back(1);
    for (long long j = 1; j <= m; j++) {
      long long sz = 1;
      for (long long l = 1; l <= i * a[j]; l++) sz++;
      sz = min(sz, (long long)te.size());
      res = mul(res, te, sz);
      res.resize(n + 1);
    }
    hola.push_back(res[n]);
  }
  for (long long i = 1; i <= n + 1; i++) hola[i] /= hola[n + 1];
  long double ans = 0;
  for (long long i = n + 1; i > 0; i--) hola[i] -= hola[i - 1];
  for (long long i = 1; i <= n; i++) ans += (hola[i] * i);
  cout << fixed << setprecision(12);
  cout << ans << endl;
}
long long powm(long long a, long long b, long long m) {
  long long te = 1;
  while (b) {
    if (b & 1) te = (te * a) % m;
    a = (a * a) % m;
    b >>= 1;
  }
  return te;
}