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