import java.io.*;
import java.util.*;

public class Main {

	Scanner in;
	PrintWriter out;

	void solve() {
		int m = in.nextInt();
		int n = in.nextInt();
		int t = in.nextInt();
		int c = in.nextInt();
				
		double s1=(t-c)*(t-c)*m*n+2*(m+n)*(c/2*(t-c))+c*c;
		double s2=((n-1)*m+(m-1)*n)*(c*(t-c))+2*(m-1+n-1)*c*c/2;
		double s4=(m-1)*(n-1)*Math.PI*c/2*c/2;
		double s3=m*n*t*t-s1-s2-s4;
		double s=s1+s2+s3+s4;
//		out.println(s);
//		out.println(s1);
//		out.println(s2);
//		out.println(s3);
//		out.println(s4);
//		out.println(s1/s*100+" "+s2/s*100+" "+s3/s*100+" "+s4/s*100);
		out.printf(Locale.US, "%.4f", (double) s1/s*100);
		out.println();
		out.printf(Locale.US, "%.4f", (double) s2/s*100);
		out.println();
		out.printf(Locale.US, "%.4f", (double) s3/s*100);
		out.println();
		out.printf(Locale.US, "%.4f", (double) s4/s*100);
	}

	void run() {
		try {
			in = new Scanner(new FileReader("input.txt"));
			out = new PrintWriter("output.txt");
		} catch (IOException e) {
			throw new Error(e);
		}
		try {
			solve();
		} finally {
			out.close();
		}
	}

	public static void main(String args[]) {
		new Main().run();
	}

}
