#include <bits/stdc++.h>
using namespace std;
const int DX[8] = {1, -1, 0, 0, 1, 1, -1, -1};
const int DY[8] = {0, 0, 1, -1, 1, -1, 1, -1};
const int intmax = 0x7fffffff;
const int mod = 1000000007;
int S;
int a, b, c;
int main() {
  scanf("%d", &S);
  scanf("%d%d%d", &a, &b, &c);
  if (a + b + c == 0) return puts("0.0 0.0 0.0");
  printf("%.20f %.20f %.20f\n", 1.0 * S * a / (a + b + c),
         1.0 * S * b / (a + b + c), 1.0 * S * c / (a + b + c));
}
