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