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