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