// Arup Guha
// 4/23/2013
// Solution to 2013 UCF High School Contest Problem: Shot Through the Heart

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

public class heart {
	
	public static void main(String[] args) throws Exception {
		
		Scanner fin = new Scanner(new File("heart.in"));
		int numCases = fin.nextInt();
		
		// Go through all cases.
		for (int loop=1; loop<=numCases; loop++) {
			
			// Calculate the function
			double x = fin.nextDouble();
			double y = fin.nextDouble();
			double ans = Math.pow(x*x+y*y-1,3) - x*x*y*y*y;
			
			// Just compare with 0 to see if we are in our out.
			if (ans < 0)
				System.out.println("Point #"+loop+": You give love a bad name.");
			else
				System.out.println("Point #"+loop+": Let it rock!");
		}
	}
}
