#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9, maxn = 1e2 + 723, N = 1e6 + 20, LOG = 21, mod = 1e9 + 7;
const int dx[] = {0, 0, -1, 1}, dy[] = {1, -1, 0, 0};
const long double eps = 1e-12, pi = 3.14159265359;
const pair<unsigned long long, unsigned long long> base = make_pair(1171, 3307);
const long long INF = 1e18;
int second, a, b, c;
int main() {
  cout << setprecision(12) << fixed;
  cin >> second >> a >> b >> c;
  if (!a && !b && !c) {
    cout << 0 << ' ' << 0 << ' ' << 0 << endl;
    return 0;
  }
  cout << (second * a + 0.0) / (a + b + c) << ' '
       << (second * b + 0.0) / (a + b + c) << ' '
       << (second * c + 0.0) / (a + b + c) << endl;
  return 0;
}
