// Arup Guha
// 2/2/2014
// Solution to 2014 UCF HS Online Contest Problem: LTE (ha ha...)

import java.util.*;

public class lte {

	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++) {
			int a = stdin.nextInt();
			int b = stdin.nextInt();

			// This is indeed less than or equal to...
			if (a <= b)
				System.out.println("Scenario #"+loop+": Agent Jimmie Flowers nabs Frohan!");
			else
				System.out.println("Scenario #"+loop+": Missed it by that much.");
		}
	}
}