#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, S;
  cin >> S;
  cin >> a >> b >> c;
  if (a == 0 and b == 0 and c == 0) {
    printf("%.6lf %.6lf %.6lf\n", 0, 0, 0);
    return 0;
  }
  double A = (a * S) / (a + b + c);
  double B = (b * S) / (a + b + c);
  double C = (c * S) / (a + b + c);
  printf("%.10lf %.10lf %.10lf\n", A, B, C);
  return 0;
}
