#include <bits/stdc++.h>
using namespace std;
double res[4];
int cs[4];
int main() {
  int s, a, b, c;
  cin >> s >> a >> b >> c;
  for (int i = 1; i <= 3; i++) cs[i] = i;
  if (a > b) {
    swap(a, b);
    swap(cs[1], cs[2]);
  }
  if (a > c) {
    swap(a, c);
    swap(cs[1], cs[3]);
  }
  if (b > c) {
    swap(b, c);
    swap(cs[2], cs[3]);
  }
  if (c == 0) {
    cout << "0 0 0";
    return 0;
  } else if (a + b == 0) {
    res[cs[1]] = 0;
    res[cs[2]] = 0;
    res[cs[3]] = s;
  }
  if (a == 0) {
    res[cs[1]] = 0;
    res[cs[2]] = ((double)b / (b + c)) * s;
    res[cs[3]] = (double)s - res[cs[2]];
  } else {
    res[cs[1]] = ((double)a / (a + b + c)) * s;
    res[cs[2]] = ((double)b / (a + b + c)) * s;
    res[cs[3]] = ((double)c / (a + b + c)) * s;
  }
  printf("%.18lf %.18lf %.18lf", res[1], res[2], res[3]);
  return 0;
}
