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