#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main() {
	int n, r, sum = 0;
	double S;
	cin >> n >> r;
	int *x = new int[n];
	for (int i = 0; i < n; i++) cin >> x[i];
	for (int i = 0; i < n; i++) sum += x[i];
	S = M_PI * r * r;
	for (int i = 0; i < n; i++) cout << fixed << setprecision(9) << (S / sum) * x[i] << endl;
	return 0;
}