#include <bits/stdc++.h>
using namespace std;
int S;
void best2(int a, int b, double &x, double &y) {
  x = S * a / double(a + b);
  y = S * b / double(a + b);
}
void best3(int a, int b, int c, double &x, double &y, double &z) {
  x = S * a / double(a + b + c);
  y = S * b / double(a + b + c);
  z = S * c / double(a + b + c);
}
int main() {
  int p[3];
  double r[3];
  r[0] = r[1] = r[2] = 0;
  scanf("%d %d %d %d", &S, &p[0], &p[1], &p[2]);
  if (p[0] == 0) {
    if (p[1] == 0) {
      r[2] = S;
    } else if (p[2] == 0) {
      r[1] = S;
    } else {
      best2(p[1], p[2], r[1], r[2]);
    }
  } else if (p[1] == 0) {
    if (p[2] == 0) {
      r[0] = S;
    } else {
      best2(p[0], p[2], r[0], r[2]);
    }
  } else if (p[2] == 0) {
    best2(p[0], p[1], r[0], r[1]);
  } else {
    best3(p[0], p[1], p[2], r[0], r[1], r[2]);
  }
  cout.precision(20);
  cout << r[0] << " " << r[1] << " " << r[2] << endl;
  return 0;
}
