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