#include <bits/stdc++.h>
using namespace std;
int main() {
  int s, a, b, c;
  cin >> s >> a >> b >> c;
  double x, y, z;
  if (a + b + c == 0)
    printf("%d 0 0", s);
  else {
    x = (double)s * a / (a + b + c);
    y = (double)s * b / (a + b + c);
    z = (double)s * c / (a + b + c);
    printf("%.15lf %.15lf %.15lf", x, y, z);
  }
  return 0;
}
