#include <bits/stdc++.h>
using namespace std;
int main() {
  int s, a, b, c;
  cin >> s >> a >> b >> c;
  if (a + b + c == 0) {
    puts("0 0 0");
    return 0;
  }
  double x = 1.0 * a * s / (a + b + c);
  double y = 1.0 * b * s / (a + b + c);
  double z = 1.0 * c * s / (a + b + c);
  printf("%.12f %.12f %.12f\n", x, y, z);
  return 0;
}
