#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<long double> v(n);
  for (auto &it : v) cin >> it;
  int m = 1 << n;
  vector<long double> t(m);
  t[0] = 1.0;
  for (int mask = 0; mask < m; mask++) {
    if (t[mask] == 0) continue;
    int bc = 0;
    for (int i = 0; i < n; i++)
      if (mask & (1 << i)) bc++;
    if (bc >= k) continue;
    long double sum = 1.0;
    for (int i = 0; i < n; i++) {
      if (mask & (1 << i)) sum -= v[i];
    }
    if (sum <= 0.0000001) continue;
    for (int i = 0; i < n; i++) {
      if (mask & (1 << i)) continue;
      t[mask | (1 << i)] += t[mask] * v[i] * (1.0 / sum);
    }
    t[mask] = 0;
  }
  vector<long double> ans(n);
  for (int mask = 0; mask < m; mask++) {
    for (int i = 0; i < n; i++) {
      if (mask & (1 << i)) {
        ans[i] += t[mask];
      }
    }
  }
  for (int i = 0; i < n; i++) cout << fixed << setprecision(7) << ans[i] << " ";
  return 0;
}
