#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:66777216")
using namespace std;
void sIO();
void iIO();
void fIO(string fn);
int a, b, s, c;
double cur;
int main() {
  sIO();
  scanf("%d %d %d %d", &s, &a, &b, &c);
  if (!(a + b + c))
    printf("0 0 0");
  else {
    cur = s / (a + b + c + .0);
    printf("%.16f %.16f %.16f", a * cur, b * cur, c * cur);
  }
  return 0;
}
inline void sIO() {}
inline void iIO() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
inline void fIO(string fn) {
  freopen((fn + ".in").c_str(), "r", stdin);
  freopen((fn + ".out").c_str(), "w", stdout);
}
