#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 10;
const int MAXN = 1e4 + 10;
const int MOD = 1e9 + 7;
const int inf = 1e9;
const double pi = acos(-1.0);
const double eps = 1e-6;
const double lim = 0.00000001;
double prob[22], res[22];
double dp[1 << 22];
int n, k;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> k;
  for (int i = 0; i < n; i++) cin >> prob[i];
  dp[0] = 1.0;
  for (int mask = 1; mask < (1 << n); mask++) {
    int cnt = __builtin_popcount(mask);
    if (cnt > k) continue;
    double sumpro = 0;
    for (int i = 0; i < n; i++)
      if (!(mask & (1 << i))) sumpro += prob[i];
    for (int i = 0; i < n; i++) {
      if (prob[i] < lim) continue;
      if (mask & (1 << i)) {
        dp[mask] += dp[mask - (1 << i)] * prob[i] / (sumpro + prob[i]);
        res[i] += dp[mask - (1 << i)] * prob[i] / (sumpro + prob[i]);
      }
    }
  }
  for (int i = 0; i < n; i++) {
    cout << fixed << setprecision(12);
    cout << res[i] << ' ';
  }
  return 0;
}
