#include <bits/stdc++.h>
double s, a, b, c;
int main() {
  scanf("%lf%lf%lf%lf", &s, &a, &b, &c);
  if (!(a + b + c))
    printf("%.20lf %.20lf %.20lf\n", s, 0, 0);
  else
    printf("%.20lf %.20lf %.20lf\n", a * s / (a + b + c), b * s / (a + b + c),
           c * s / (a + b + c));
  return 0;
}
