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