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