// Arup Guha
// 12/5/2015
// Solution to Fall 2015 UCF HS Online Contest Problem: Palace Walls

import java.util.*;

public class palace {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int numCases = stdin.nextInt();

		// Process each case.
		for (int loop=1; loop<=numCases; loop++) {

			// Read in the length and area.
			int len = stdin.nextInt();
			int area = stdin.nextInt();


			// The maximum area of the triangle is a 45-45-90 one with area len*len/4.0
			// To avoid doubles just double both sides of the comparison.
			if (len*len >= 4*area)
				System.out.println("Wall #"+loop+": YES");
			else
				System.out.println("Wall #"+loop+": NO");
		}
	}
}