#include <bits/stdc++.h>
using namespace std;
int s;
int a, b, c;
double ans;
double cal(double x, double y, double z) {
  double sum = 1;
  double aa, bb, cc;
  if (x < 1e-12) {
    aa = -1000000000;
    if (a == 0) aa = 0;
  } else
    aa = a * log(x);
  if (y < 1e-12) {
    bb = -1000000000;
    if (b == 0) bb = 0;
  } else
    bb = b * log(y);
  if (z < 1e-12) {
    cc = -1000000000;
    if (c == 0) cc = 0;
  } else
    cc = c * log(z);
  sum = aa + bb + cc;
  return sum;
}
double fun(double p) {
  double l, r, p1, p2;
  l = 0;
  r = s - p;
  while (l + 1e-12 < r) {
    p1 = (2.0 * l + r) / 3.0;
    p2 = (l + 2.0 * r) / 3.0;
    if (cal(p, p1, s - p - p1) + 1e-12 > cal(p, p2, s - p - p2)) {
      r = p2;
    } else
      l = p1;
  }
  ans = l;
  return cal(p, r, s - p - r);
}
int main() {
  int i;
  while (cin >> s >> a >> b >> c) {
    double l, r, p1, p2;
    l = 0;
    r = s;
    while (l + 1e-12 < r) {
      p1 = (2.0 * l + r) / 3.0;
      p2 = (l + 2.0 * r) / 3.0;
      if (fun(p1) + 1e-12 > fun(p2)) {
        r = p2;
      } else
        l = p1;
    }
    fun(r);
    printf("%.12lf %.12lf %.12lf\n", r, ans, s - r - ans);
  }
}
