#include <bits/stdc++.h>
int main() {
  int s;
  int a, b, c;
  scanf("%d", &s);
  scanf("%d%d%d", &a, &b, &c);
  if (s < 1 || a + b + c < 1) {
    printf("%.10lf %.10lf %.10lf\n", 0.0, 0.0, 0.0);
    return 0;
  }
  double Cart = sqrt(a * a + b * b + c * c);
  double every = (double)s / (a + b + c);
  printf("%.10lf %.10lf %.10lf\n", every * a, every * b, every * c);
}
