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