#include <bits/stdc++.h>
using namespace std;
const int M = 200 + 10;
int main() {
  int S;
  cin >> S;
  int a, b, c;
  cin >> a >> b >> c;
  if (a == 0 && b == 0 && c == 0) {
    for (int i = 0; i < 3; i++) {
      printf("%.10f ", 1.0 * S / 3);
    }
  } else {
    int tsum = a + b + c;
    double x = 1.0 * a * S / tsum;
    double y = 1.0 * b * S / tsum;
    double z = 1.0 * c * S / tsum;
    printf("%.10f %.10f %.10f\n", x, y, z);
  }
  return 0;
}
