// Arup Guha
// 7/20/2015
// Solution to 2010 UCF Fall Locals Problem: Plate Spinning

import java.util.*;

public class plate {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int numCases = stdin.nextInt();

		// Process all cases.
		for (int loop=1; loop<=numCases; loop++) {

			// Read in input.
			int plates = stdin.nextInt();
			int speed = stdin.nextInt();

			// Print header.
			System.out.println("Circus Act "+loop+":");

			// This is all we care about, stupid trick case of 1 plate...
			if (2*speed/plates >= 5 || plates == 1)
				System.out.println("Chester can do it!");
			else
				System.out.println("Chester will fail!");
			System.out.println();
		}
	}
}