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