#include <bits/stdc++.h>
using namespace std;
int main() {
  int S, a, b, c;
  cin >> S >> a >> b >> c;
  if (a == 0 && b == 0 && c == 0) {
    cout << "0 0 0";
  } else {
    double d = a + b + c;
    cout << setprecision(20) << a / d * S << ' ' << b / d * S << ' '
         << c / d * S;
  }
  return 0;
}
