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