#include <bits/stdc++.h>
using namespace std;
ifstream fin("input.txt");
ofstream fout("output.txt");
double s, a, b, c;
vector<int> ans;
int main() {
  cin >> s >> a >> b >> c;
  if (a == 0 && b == 0 && c == 0) {
    cout << "0 0 0";
  } else {
    double x = s / (a + b + c) * a;
    double y = s / (a + b + c) * b;
    double z = s / (a + b + c) * c;
    cout << fixed << setprecision(10) << x << " " << y << " " << z;
  }
  return 0;
}
