#include <bits/stdc++.h>
using namespace std;
template <typename T>
void read(T &x) {
  x = 0;
  char ch = getchar();
  int fh = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') fh = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') x = x * 10 + ch - '0', ch = getchar();
  x *= fh;
}
template <typename T>
void write(T x) {
  if (x < 0) x = -x, putchar('-');
  if (x > 9) write(x / 10);
  putchar(x % 10 + '0');
}
template <typename T>
void writeln(T x) {
  write(x);
  puts("");
}
int S;
int a, b, c;
signed main() {
  cin >> S >> a >> b >> c;
  if (a == 0 && b == 0 && c == 0) {
    cout << 0 << ' ' << 0 << ' ' << 0 << endl;
    return 0;
  }
  cout << fixed << setprecision(16)
       << (double)S / (double)(a + b + c) * (double)a << ' '
       << (double)S / (double)(a + b + c) * (double)b << ' '
       << (double)S / (double)(a + b + c) * (double)c << endl;
  return 0;
}
