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