#include <bits/stdc++.h>
int main() {
  double sum;
  int a, b, c;
  scanf("%lf%d%d%d", &sum, &a, &b, &c);
  double s = a + b + c, x, y, z;
  x = a == 0 ? 0 : sum * a / s;
  y = b == 0 ? 0 : sum * b / s;
  z = c == 0 ? 0 : sum * c / s;
  printf("%.10f %.10f %.10f\n", x, y, z);
  return 0;
}
