#include <bits/stdc++.h>
using namespace std;
long double s, a, b, c, eps = 1e-8;
int main() {
  scanf("%lf%lf%lf%lf", &s, &a, &b, &c);
  long double x = s * a / (a + b + c);
  long double y = s * b / (a + b + c);
  long double z = s * c / (a + b + c);
  if (fabs(a + b + c) < eps) x = y = z = 0;
  printf("%.16Lf %.16Lf %.16Lf\n", x, y, z);
  return 0;
}
