#include <bits/stdc++.h>
using namespace std;
int S, a[3];
int main() {
  double res[3];
  scanf("%d%d%d%d", &S, &a[0], &a[1], &a[2]);
  int sum = a[0] + a[1] + a[2];
  if (sum == 0) {
    sum = 1;
  }
  for (int i = 0; i < 3; ++i) {
    res[i] = (double)(a[i] * S) / sum;
  }
  for (int i = 0; i < 3; ++i) {
    printf("%.13f%c", res[i], i == 2 ? '\n' : ' ');
  }
  return 0;
}
