#include <bits/stdc++.h>
using namespace std;
int S;
int a, b, c;
int main() {
  scanf("%d", &S);
  scanf("%d %d %d", &a, &b, &c);
  if (!(a + b + c))
    puts("0 0 0");
  else
    printf("%.15f %.15f %.15f\n", (double)(S)*a / (a + b + c),
           (double)(S)*b / (a + b + c), (double)(S)*c / (a + b + c));
}
