#include <bits/stdc++.h>
using namespace std;
double s, a, b, c;
void func() {
  if (a == 0 && b == 0 && c == 0)
    cout << 0 << " " << 0 << " " << 0 << endl;
  else {
    double x = a * s / (a + b + c);
    double y = b * s / (a + b + c);
    double z = c * s / (a + b + c);
    cout << x << " " << y << " " << z << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cout << fixed;
  cout.precision(10);
  cin >> s >> a >> b >> c;
  func();
  return 0;
}
