#include <bits/stdc++.h>
using namespace std;
template <typename T>
T gcd(T a, T b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
template <typename T>
T pow(T a, T b, long long m) {
  T ans = 1;
  while (b > 0) {
    if (b % 2 == 1) ans = (ans * a) % m;
    b /= 2;
    a = (a * a) % m;
  }
  return ans % m;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long double s;
  cin >> s;
  long long a, b, c;
  long long cnt = 0;
  cin >> a >> b >> c;
  long double sum = (long double)(a + b + c);
  if (a == 0 && b == 0 && c == 0) {
    cout << fixed << setprecision(15) << s << " " << 0.0 << " " << 0.0;
    return 0;
  }
  long double e = (a * s) / sum;
  long double f = (b * s) / sum;
  long double g = (c * s) / sum;
  cout << fixed << setprecision(15) << e << " " << f << " " << g;
}
