#include <bits/stdc++.h>
using namespace std;
const int NN = 100 * 1000 + 100;
int main() {
  ios::sync_with_stdio(false);
  int a, b, c, S;
  cin >> S >> a >> b >> c;
  int sum = a + b + c;
  double x = sum == 0 ? 0 : (double)(a * S) / sum;
  double y = sum == 0 ? 0 : (double)(b * S) / sum;
  double z = sum == 0 ? 0 : (double)(c * S) / sum;
  printf("%.15f %.15f %.15f\n", x, y, z);
}
