#include <bits/stdc++.h>
using namespace std;
const int INF = 0x7fffffff;
int main() {
  double s, a, b, c;
  while (cin >> s >> a >> b >> c) {
    double x1 = (a * s * 1.0) / (a + b + c);
    double y1 = 1.0 * (b * s * 1.0) / (a + b + c);
    double z1 = 1.0 * (c * s * 1.0) / (a + b + c);
    if (x1 + y1 + z1 > s) {
      x1 -= 0.00000001;
      y1 -= 0.00000001;
      z1 -= 0.00000001;
    }
    if (a == 0 && b == 0 && c == 0) {
      x1 = s;
      y1 = 0;
      z1 = 0;
    }
    printf("%.15f %.15f %.15f\n", x1, y1, z1);
  }
  return 0;
}
