#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int s, a, b, c;
  cin >> s;
  cin >> a >> b >> c;
  long double x, y, z;
  if (a == 0 && b == 0 && c == 0) {
    cout << fixed << setprecision(18) << 1.0 * s / 3 << " " << 1.0 * s / 3
         << " " << 1.0 * s / 3;
  } else {
    x = 1.0 * a * s / (a + b + c);
    y = 1.0 * b * s / (a + b + c);
    z = 1.0 * c * s / (a + b + c);
    cout << fixed << setprecision(18) << x << " " << y << " " << z;
  }
  return 0;
}
