#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
int n, k;
double p[21];
double ans[21];
double dp[1 << 21];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> p[i];
  }
  dp[0] = 1;
  for (int i = 0; i < (1 << n); i++) {
    double tot = 0;
    int cnt = 0;
    for (int j = 0; j < n; j++) {
      if (!(i & (1 << j))) {
        tot += p[j];
        cnt++;
      }
    }
    if (n - cnt > k) continue;
    for (int j = 0; j < n; j++) {
      if (p[j] < eps) continue;
      if ((1 << j) & i) {
        dp[i] += dp[i - (1 << j)] * p[j] / (tot + p[j]);
        ans[j] += dp[i - (1 << j)] * p[j] / (tot + p[j]);
      }
    }
  }
  for (int i = 0; i < n; i++) {
    cout << fixed << setprecision(10) << ans[i] << " ";
  }
  cout << "\n";
  return 0;
}
