#include <bits/stdc++.h>
using namespace std;
int main() {
  int s, a, b, c;
  cin >> s >> a >> b >> c;
  if (a == 0 && b == 0 && c == 0) {
    printf("%.10f %.10f %.10f\n", s, 0, 0);
  } else {
    int sum = a + b + c;
    printf("%.10f %.10f %.10f\n", ((double)a * s) / sum, ((double)b * s) / sum,
           ((double)c * s) / sum);
  }
  return 0;
}
