#include <bits/stdc++.h>
const double eps = (1e-10);
using namespace std;
int dcmp(double a, double b) {
  return fabs(a - b) <= eps ? 0 : (a > b) ? 1 : -1;
}
long long getBit(long long num, int idx) { return ((num >> idx) & 1ll) == 1ll; }
long long setBit1(long long num, int idx) { return num | (1ll << idx); }
long long setBit0(long long num, int idx) { return num & ~(1ll << idx); }
long long flipBit(long long num, int idx) { return num ^ (1ll << idx); }
int countNumBit1(long long mask) {
  int ret = 0;
  while (mask) {
    mask &= (mask - 1ll);
    ++ret;
  }
  return ret;
}
int main() {
  int x, y, z, a, b, c, s;
  cin >> s >> a >> b >> c;
  int p = a + b + c;
  if (p == 0) {
    cout << 0.0 << " " << 0.0 << " " << 0.0 << endl;
    return 0;
  }
  double f = (s + 0.0) / p;
  cout << fixed << setprecision(30) << a * f << " " << b * f << " " << c * f
       << endl;
}
