#include <bits/stdc++.h>
using namespace std;
int rec[1011][2];
int main() {
  int a, b, c;
  double s, x, y, z;
  while (scanf("%lf%d%d%d", &s, &a, &b, &c) != EOF) {
    if (a + b + c == 0) {
      printf("0.0 0.0 0.0\n");
      continue;
    } else {
      y = (b * s) / (a + b + c);
      z = (c * s) / (a + b + c);
      x = (a * s) / (a + b + c);
      printf("%.16lf %.16lf %.16lf\n", x, y, z);
    }
  }
  return 0;
}
