#include <bits/stdc++.h>
using namespace std;
double s, a, b, c;
double foo(double x, double y, double z) {
  return a * log(x) + b * log(y) + c * log(z);
}
int main() {
  cin >> s >> a >> b >> c;
  cout.precision(15);
  if (a + b + c == 0) {
    cout << fixed << .0 << ' ' << .0 << ' ' << .0 << endl;
  } else {
    cout << fixed << s * a / (a + b + c) << ' ' << s * b / (a + b + c) << ' '
         << s * c / (a + b + c) << endl;
  }
  return 0;
}
