// Arup Guha
// 2/5/2013
// Solution to 2013 HS Online Problem: Anti-Anti-Trolling

import java.util.*;

public class anti {
	
	public static void main(String[] args) {
		
		Scanner stdin = new Scanner(System.in);
		
		// Go through all cases.
		int numCases = stdin.nextInt();
		for (int loop=1; loop<=numCases; loop++) {
			
			int numWords = stdin.nextInt();
			int numGuesses = stdin.nextInt();
			boolean[] inPuzzle = new boolean[26];
			
			// Go through each word, noting each distinct letter.
			for (int i=0; i<numWords; i++) {
				
				String s = stdin.next().toLowerCase();
				for (int j=0; j<s.length(); j++)
					inPuzzle[s.charAt(j) - 'a'] = true;
			}
			
			// Count up distinct letters.
			int cnt = 0;
			for (int i=0; i<inPuzzle.length; i++)
				if (inPuzzle[i])
					cnt++;
					
			// This is the criterion for "success".
			if (cnt == 26 || cnt > 26 - numGuesses)
				System.out.println("Game #"+loop+": Impossible to lose");
			else
				System.out.println("Game #"+loop+": Trolling succeeded");
			System.out.println();
		}
	}
}