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