#include <bits/stdc++.h>
using namespace std;
double dp[1 << 20], p[20], ans[20];
int main() {
  int n, k;
  cin >> n >> k;
  for (int i = 0; i < n; ++i) cin >> p[i];
  int up = 1 << n;
  dp[0] = 1;
  for (int i = 1; i < up; ++i) {
    if (__builtin_popcount(i) > k) continue;
    double sp = 0;
    for (int j = 0; j < n; ++j) {
      if ((i & (1 << j)) == 0) sp += p[j];
    }
    for (int j = 0; j < n; ++j) {
      if (p[j] < 1e-8) continue;
      if ((i & (1 << j)) != 0) {
        dp[i] += dp[i ^ (1 << j)] * p[j] / (sp + p[j]);
        ans[j] += dp[i ^ (1 << j)] * p[j] / (sp + p[j]);
      }
    }
  }
  for (int i = 0; i < n; ++i) printf("%.6f\n", ans[i]);
}
