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