#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cout.setf(ios::fixed);
  double S;
  int a, b, c;
  cin >> S >> a >> b >> c;
  if (a + b + c == 0)
    cout << "0 0 0\n";
  else {
    S /= (a + b + c);
    cout.precision(10);
    cout << a * S << ' ' << b * S << ' ' << c * S << '\n';
  }
}
