#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  long long s, a, b, c;
  cin >> s >> a >> b >> c;
  long long cnt = 0;
  if (!a) cnt++;
  if (!b) cnt++;
  if (!c) cnt++;
  cout << fixed << setprecision(12);
  double z = 0, x = 0, y = 0;
  if (cnt == 3)
    cout << z << " " << z << " " << z;
  else if (cnt == 2) {
    if (a)
      cout << (double)s << " ";
    else
      cout << z << " ";
    if (b)
      cout << (double)s << " ";
    else
      cout << z << " ";
    if (c)
      cout << (double)s << " ";
    else
      cout << z << " ";
  } else if (cnt == 1) {
    if (a && b) {
      y = (b * s + 0.0) / (a + b);
      x = s - y;
    } else if (b && c) {
      z = (c * s + 0.0) / (b + c);
      y = s - z;
    } else {
      z = (c * s + 0.0) / (a + c);
      x = s - z;
    }
    cout << x << " " << y << " " << z;
  } else {
    z = (s * c + 0.0) / (a + b + c);
    y = b * (s - z) / (a + b);
    x = s - y - z;
    cout << x << " " << y << " " << z;
  }
}
