#include <bits/stdc++.h>
using namespace std;
int main() {
  int s, a, b, c;
  double x, y, z;
  cin >> s >> a >> b >> c;
  if (a + b + c == 0) {
    x = 1;
    y = z = 0;
  } else {
    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("%.10lf %.10lf %.10lf\n", x, y, z);
  return 0;
}
