#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    double s, a, b, c, x, y, z;
    cin >> s >> a >> b >> c;
    if (a + b + c == 0) {
      cout << "0 0 0" << endl;
      return 0;
    }
    x = s * a / (a + b + c);
    y = s * b / (a + b + c);
    z = s * c / (a + b + c);
    cout << fixed << setprecision(10) << x << " " << y << " " << z << endl;
  }
  return 0;
}
