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