#include <bits/stdc++.h>
using namespace std;
int main() {
  double s, a, b, c;
  cin >> s >> a >> b >> c;
  if (a + b + c == 0)
    printf("%.12lf %.12lf %.12lf\n", 0.0, 0.0, s);
  else
    printf("%.12lf %.12lf %.12lf\n", (s * a) / (a + b + c) - 1e-12,
           (s * b) / (a + b + c) - 1e-12, (s * c) / (a + b + c) - 1e-12);
  return 0;
}
