#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  return b ? gcd(b, a % b) : a;
}
int s, a, b, c;
int main() {
  cin >> s >> a >> b >> c;
  cout << fixed << setprecision(11);
  if (a == 0 && b == 0 && c == 0) {
    cout << s << " " << 0 << " " << 0 << endl;
    return 0;
  }
  int tot = a + b + c;
  double part = 1. * s / tot;
  double x = part * a, y = part * b, z = part * c;
  cout << x << " " << y << " " << z << endl;
  return 0;
}
