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