#include <bits/stdc++.h>
using namespace std;
int main() {
  double s;
  int a, b, c;
  cin >> s >> a >> b >> c;
  int x = a + b + c;
  if (x)
    printf("%.20lf %.20lf %.20lf", a * s / x, b * s / x, c * s / x);
  else
    cout << "0.0 0.0 0.0";
}
