#include <bits/stdc++.h>
using namespace std;
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, -1, 1};
const int N = 10;
int getRand(int mod) { return (rand() % mod) + 1; }
long double s, a, b, c;
long double _x, _y, _z;
inline void solve() {
  if (a + b + c == 0)
    puts("0 0 0");
  else {
    _x = (a * s) / (a + b + c);
    _y = (b * s) / (a + b + c);
    _z = (c * s) / (a + b + c);
    printf("%.10lf %.10lf %.10lf\n", (double)_x, (double)_y, (double)_z);
  }
}
int main() {
  cin >> s >> a >> b >> c;
  solve();
  return 0;
}
