#include <bits/stdc++.h>
using namespace std;
int main() {
  double s, x, y, z, a, b, c;
  cin >> s >> a >> b >> c;
  if (a == 0 && b == 0 && c == 0) {
    cout << 0 << " " << 0 << " " << 0 << endl;
    return 0;
  }
  double part = s / (a + b + c);
  x = a * part;
  y = b * part;
  z = c * part;
  cout << setprecision(15) << x << " " << y << " " << z << endl;
  return 0;
}
