#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
  double s;
  while (cin >> s) {
    double t;
    scanf("%d%d%d", &a, &b, &c);
    if (a == 0 && b == 0 && c == 0) {
      printf("%.12f 0 0\n", s);
      continue;
    }
    double sum = 1.0 * (a + b + c);
    t = sum / s;
    printf("%.12f %.12f %.12f\n", a / t, b / t, c / t);
  }
  return 0;
}
