#include <bits/stdc++.h>
using namespace std;
int main() {
  int S, a, b, c;
  scanf("%d %d %d %d", &S, &a, &b, &c);
  if (a == 0 && b == 0 && c == 0) {
    printf("%d %d %d\n", S, 0, 0);
  } else {
    double va = a / (double)(a + b + c);
    double vb = b / (double)(a + b + c);
    double vc = c / (double)(a + b + c);
    printf("%.12lf %.12lf %.12lf\n", va * (S - 1e-12), vb * (S - 1e-12),
           vc * (S - 1e-12));
  }
}
