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