#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, s;
  while (scanf("%d %d %d %d", &s, &a, &b, &c) != EOF) {
    if (a == 0 && b == 0 && c == 0)
      cout << 0 << " " << 0 << " " << s << ".0" << endl;
    else {
      printf("%.15lf %.15lf %.15lf\n", s / (a + b + c + 0.0) * a,
             s / (a + b + c + 0.0) * b, s / (a + b + c + 0.0) * c);
    }
  }
  return 0;
}
