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