#include <bits/stdc++.h>
using namespace std;
long double a, b, c;
long double s;
long double x;
int main() {
  cin >> s >> a >> b >> c;
  if (a == b && b == c && c == 0)
    cout << s << " " << 0 << " " << 0 << "\n";
  else
    cout << fixed << setprecision(10) << s * a / (a + b + c) << " "
         << s * b / (a + b + c) << " " << s * c / (a + b + c) << "\n";
  return 0;
}
