#include <bits/stdc++.h>
int a, b, c, s;
double t, e = 1 - 1e-16;
int main() {
  scanf("%d%d%d%d", &s, &a, &b, &c);
  t = a + b + c;
  if (t < 0.5) {
    t = 3;
    a = b = c = 1;
  }
  printf("%.15le %.15le %.15le", s * a / t * e, s * b / t * e, s * c / t * e);
}
