#include <bits/stdc++.h>
using namespace std;
int s, a, b, c;
double calc(double x) {
  double l = 1e-12, r = s - x - 1e-12;
  for (int i = 0; i < 100; i++) {
    double m1 = l + (r - l) / 3, m2 = r - (r - l) / 3;
    double p1 = b * log(m1) + c * log(s - x - m1),
           p2 = b * log(m2) + c * log(s - x - m2);
    if (p1 > p2)
      r = m2;
    else
      l = m1;
  }
  return a * log(x) + b * log(l) + c * log(s - x - l);
}
int main() {
  cin >> s >> a >> b >> c;
  if (a == 0 && b == 0 && c == 0)
    cout << "0 0 0" << endl;
  else if (a > 0 && b == 0 && c == 0)
    cout << s << " " << 0 << " " << 0 << endl;
  else if (a == 0 && b > 0 && c == 0)
    cout << 0 << " " << s << " " << 0 << endl;
  else if (a == 0 && b == 0 && c > 0)
    cout << 0 << " " << 0 << " " << s << endl;
  else if (a > 0 && b > 0 && c == 0) {
    double x = 0, y = 0;
    double l = 1e-12, r = s - 1e-12;
    for (int i = 0; i < 100; i++) {
      double m1 = l + (r - l) / 3, m2 = r - (r - l) / 3;
      double p1 = a * log(m1) + b * log(s - m1),
             p2 = a * log(m2) + b * log(s - m2);
      if (p1 > p2)
        r = m2;
      else
        l = m1;
    }
    x = l;
    y = s - l - 1e-12;
    printf("%.13lf %.13lf 0\n", x, y);
  } else if (a > 0 && b == 0 && c > 0) {
    double x = 0, z = 0;
    double l = 1e-12, r = s - 1e-12;
    for (int i = 0; i < 100; i++) {
      double m1 = l + (r - l) / 3, m2 = r - (r - l) / 3;
      double p1 = a * log(m1) + c * log(s - m1),
             p2 = a * log(m2) + c * log(s - m2);
      if (p1 > p2)
        r = m2;
      else
        l = m1;
    }
    x = l;
    z = s - l - 1e-12;
    printf("%.13lf 0 %.13lf\n", x, z);
  } else if (a == 0 && b > 0 && c > 0) {
    double y = 0, z = 0;
    double l = 1e-12, r = s - 1e-12;
    for (int i = 0; i < 100; i++) {
      double m1 = l + (r - l) / 3, m2 = r - (r - l) / 3;
      double p1 = b * log(m1) + c * log(s - m1),
             p2 = b * log(m2) + c * log(s - m2);
      if (p1 > p2)
        r = m2;
      else
        l = m1;
    }
    y = l;
    z = s - l - 1e-12;
    printf("0 %.13lf %.13lf\n", y, z);
  } else {
    double x = 0, y = 0, z = 0;
    double l = 1e-12, r = s - 1e-12;
    for (int i = 0; i < 100; i++) {
      double m1 = l + (r - l) / 3, m2 = r - (r - l) / 3;
      if (calc(m1) > calc(m2))
        r = m2;
      else
        l = m1;
    }
    x = l;
    l = 1e-12;
    r = s - x - 1e-12;
    for (int i = 0; i < 100; i++) {
      double m1 = l + (r - l) / 3, m2 = r - (r - l) / 3;
      double p1 = b * log(m1) + c * log(s - x - m1),
             p2 = b * log(m2) + c * log(s - x - m2);
      if (p1 > p2)
        r = m2;
      else
        l = m1;
    }
    y = l;
    z = s - x - y - 1e-12;
    printf("%.13lf %.13lf %.13lf\n", x, y, z);
  }
  return 0;
}
