// Arup Guha
// 4/2/2013
// Solution to 2013 FHSPS Problem Origami

import java.util.*;

public class origami {
	
	public static void main(String[] args) {
		
		Scanner stdin = new Scanner(System.in);
		int numCases = stdin.nextInt();
		
		// Go through each paper.
		for (int loop=0; loop<numCases; loop++) {
			
			// Get input.
			int width = stdin.nextInt();
			int length = stdin.nextInt();
			int horizontal = stdin.nextInt();
			int vertical = stdin.nextInt();
			
			// Will store dimensions of the four sections of the folded paper.
			int lowx, midx, highx, lowy, midy, highy;
			
			// Solve x-dimension.
			lowy = horizontal;
			midy = 2*horizontal;
			highy = length;
			if (midy > highy) {
				int temp = midy;
				midy = highy;
				highy = temp;
			}
			
			// Solve y-dimension.
			lowx = vertical;
			midx = 2*vertical;
			highx = width;
			if (midx > highx) {
				int temp = midx;
				midx = highx;
				highx = temp;
			}
			
			// Calculate the area of each region.
			int oneArea = (highx - midx)*(highy - midy);
			int fourArea = (midx - lowx)*(midy - lowy);
			int twoArea = (highx - lowx)*(highy - lowy) - oneArea - fourArea;
			
			// Output it.
			System.out.println(oneArea+" "+twoArea+" "+fourArea);
		}
	}
}