#include <bits/stdc++.h>
using namespace std;
int main() {
  int s;
  double x, y, z;
  double a, b, c;
  while (cin >> s >> x >> y >> z) {
    if (x == 0.0) {
      a = 0.0;
    } else {
      double temp1 = (x == 0 ? 0 : y / x);
      double temp2 = (x == 0 ? 0 : z / x);
      a = double(s) / (1.0 + temp1 + temp2);
    }
    if (y == 0.0) {
      b = 0.0;
    } else {
      double temp1 = (y == 0 ? 0 : z / y);
      double temp2 = (y == 0 ? 0 : x / y);
      b = double(s) / (1.0 + temp1 + temp2);
    }
    if (z == 0.0) {
      c = 0.0;
    } else {
      double temp1 = (z == 0 ? 0 : x / z);
      double temp2 = (z == 0 ? 0 : y / z);
      c = double(s) / (1.0 + temp1 + temp2);
    }
    printf("%.10lf %.10lf %.10lf\n", a - (5e-11), b - (5e-11), c - (5e-11));
  }
  return 0;
}
