#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <cmath>

using namespace std;

int main()
{
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);

	int n, m;
	cin >> n >> m;
	double t;
	double d;
	double con = sqrt(2.0);
	double pi = acos(0.0) * 2.0;

	cin >> t >> d;

	double c1, c2, c3, c4;
	double r = d / 2.0;

	//c1 = (t - r) * (double)n + (t - r) * (double)m - (t - r)*(t - r);
	c1 = (t - r) * (t - r) * 4.0 
		+ (t - 2.0*r) * (t - 2.0*r) * (n * m - n - n - m - m + 4)
		+ (2 * (n - 2) + 2.0 * (m - 2.0)) * ((t - r) * (t - 2.0 * r));

	double x = (con - 1.0) * r;
	double y = x / con;
	double z = r - y;

	c4 = (n - 1) * (m - 1) * r * r * pi;
	c3 = (n - 1) * (m - 1) * (r * r * 4 - r * r * pi);
	c2 = (n * m * t * t) - c3 - c4 - c1;



	printf("%0.4lf ", c1 * 100.0 / (n * m * t * t));
	printf("%0.4lf ", c2 * 100.0 / (n * m * t * t));
	printf("%0.4lf ", c3 * 100.0 / (n * m * t * t));
	printf("%0.4lf ", c4 * 100.0 / (n * m * t * t));
	

	fclose(stdin);
	fclose(stdout);

	return 0;
/*
5 5 10 3
7 4 25 20
*/
}