#include <bits/stdc++.h>
int main() {
  double s, a, b, c, x;
  while (~scanf("%lf%lf%lf%lf", &s, &a, &b, &c)) {
    if (s < 1 || a + b + c < 1)
      a = b = c = 0, s = x = 1;
    else
      x = (a + b + c) / s;
    printf("%.10f %.10f %.10f\n", a / x, b / x, c / x);
  }
}
