#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200005;
int a, b, c;
double x, y;
double logg(double co) {
  if (co == 0.0)
    return -10000000000000000LL;
  else
    return log(co);
}
double wal(double sum, double v1) {
  double s1, s2, p, k;
  p = 0;
  k = sum;
  while (k - p >= 1e-10) {
    s1 = p + (k - p) / 3;
    s2 = p + (k - p) * 2 / 3;
    if (logg(v1) * a + logg(s1) * b + logg(sum - s1) * c >=
        logg(v1) * a + log(s2) * b + logg(sum - s2) * c)
      k = s2;
    else
      p = s1;
  }
  x = p;
  y = sum - x;
  return logg(v1) * a + logg(x) * b + logg(y) * c;
}
int main() {
  int n, m, sum, d, e;
  double p, k, s1, s2, v1, v2;
  scanf("%d%d%d%d", &sum, &a, &b, &c);
  p = 0;
  k = sum;
  while (k - p >= 1e-10) {
    s1 = p + (k - p) / 3;
    s2 = p + (k - p) * 2 / 3;
    v1 = wal(sum - s1, s1);
    v2 = wal(sum - s2, s2);
    if (v1 >= v2)
      k = s2;
    else
      p = s1;
  }
  printf("%.10lf %.10lf %.10lf", p, x, y);
  return 0;
}
