#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");
    return 0;
  }
  double x = 1.0 * S * a / (a + b + c), y = 1.0 * S * b / (a + b + c),
         z = 1.0 * S * c / (a + b + c);
  printf("%.12lf %.12lf %.12lf\n", x, y, z);
  return 0;
}
