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