// 
#pragma comment(linker, "/STACK:16777215")
#include <cmath>
#include <ctime>
#include <cstring>
#include <ctime>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <deque>
#include <string>
using namespace std;

const double PI= 3.1415926535897932384626433832795;

double mas[5]={0};

int main()
{
	int i, j, k;
	double m, n, t, c;
	double x, y, s, r;
	srand(time(0));
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
	cin >> m >> n >> t >> c;
	s= m*n*t*t;
	r= c/2.0;
	if (n>=2 && m>=2)
		mas[4]= (PI*r*r)*(n-1)*(m-1);
	else
		mas[4]= 0; 

	mas[1]= n*m*(t-2*r)*(t-2*r)+ 2*r*(t-2*r)*(m+n)+4*r*r;
	mas[2]= 
		c*(t-c)*
		((n-1)*m+(m-1)*n)
		+c*c*(m-1+n-1);
	mas[3]= s-mas[1]-mas[2]-mas[4];
	for(i=1; i<=4; ++i)
		printf("%.4lf ", 100.0*mas[i]/s);
	return 0;
}