#include <bits/stdc++.h>
using namespace std;
inline void solve() {
  long double a, b, c, s;
  cin >> s >> a >> b >> c;
  long double x, y, z;
  if (b == 0 && c == 0 && a == 0) {
    x = s;
  } else {
    x = (a * s * 1.0) / (1.0 * (a + b + c));
  }
  if (c == 0 && a == 0 && b == 0) {
    y = 0;
  } else {
    y = (b * s * 1.0) / (1.0 * (a + b + c));
  }
  if (b == 0 && c == 0 && a == 0) {
    z = 0;
  } else {
    z = (c * s * 1.0) / (1.0 * (c + b + a));
  }
  std::cout << std::fixed;
  std::cout << std::setprecision(10) << x << ' ' << y << ' ' << z << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int tests = 1;
  while (tests--) {
    solve();
  }
}
