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;
double a[51][51][51];
long long npok[51][51];
int bas[60];
double sum;
int n, m;
double bern(int k, int s, int r) {
  if (k > s) return 0.0;
  double p = 1.0 / double(r);
  double w = 1.0;
  for (int i = 1; i <= s; i++) {
    if (i <= k) w *= p;
    if (i <= s - k) w *= (1 - p);
  }
  w *= double(npok[s][k]);
  return w;
}
int main() {
  cin >> n >> m;
  sum = 0;
  for (int i = 0; i <= (int)(51) - 1; i++)
    for (int j = 0; j <= (int)(51) - 1; j++) npok[i][j] = 0;
  npok[0][0] = 1;
  for (int i = 1; i <= 50; i++) {
    npok[i][0] = 1;
    npok[i][i] = 1;
    for (int j = 1; j <= i - 1; j++)
      npok[i][j] = npok[i - 1][j] + npok[i - 1][j - 1];
  }
  for (int i = 0; i <= (int)(m)-1; i++) cin >> bas[i];
  for (int i = 0; i <= (int)(51) - 1; i++)
    for (int j = 0; j <= (int)(51) - 1; j++)
      for (int k = 0; k <= (int)(51) - 1; k++) a[i][j][k] = 0.0;
  for (int i = 0; i <= (int)(51) - 1; i++) a[0][i][0] = 1.0;
  for (int i = 0; i <= (int)(n + 1) - 1; i++)
    for (int j = 0; j <= (int)(n + 1) - 1; j++) {
      a[i][0][j] = 1.0 * (i == (j + bas[0] - 1) / bas[0]);
    }
  for (int y = 1; y <= m - 1; y++)
    for (int x = 1; x <= n; x++)
      for (int z = 1; z <= n; z++) {
        for (int i = (x - 1) * bas[y] + 1; i <= min(z, bas[y] * x); i++) {
          for (int k = 0; k <= x; k++)
            a[x][y][z] += bern(i, z, y + 1) * a[k][y - 1][z - i];
        }
        for (int i = 0; i <= min(z, (x - 1) * bas[y]); i++) {
          a[x][y][z] += bern(i, z, y + 1) * a[x][y - 1][z - i];
        }
      }
  sum = 0.0;
  for (int i = 1; i <= n; i++) {
    sum += double(i) * a[i][m - 1][n];
  }
  printf("%.18f", sum);
  return 0;
}