#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  cout << fixed << setprecision(12);
  long double S, a, b, c;
  cin >> S >> a >> b >> c;
  if (a + b + c == 0) {
    cout << 0 << " " << 0 << " " << 0 << endl;
  } else {
    long double sum = a + b + c;
    cout << (a * S / sum) << " " << (b * S / sum) << " " << (c * S / sum)
         << endl;
  }
}
