// Arup Guha
// 2/28/2014
// Solution to 2011 UCF HS Problem: Stapler

import java.util.*;

public class stapler {

	final public static int MAXSTAPLE = 30;

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int numCases = stdin.nextInt();

		// Go through each case.
		for (int loop=1; loop<=numCases; loop++) {

			// Add up all the values.
			int n = stdin.nextInt();
			int sum = 0;
			for (int i=0; i<n; i++)
				sum += stdin.nextInt();

			// Output result.
			System.out.println("Battle #"+loop+":");
			System.out.println("The Stapler must face "+sum+" pages");
			if (sum <= MAXSTAPLE)
				System.out.println("The Stapler saves the day!");
			else
				System.out.println("Foiled again!");

			System.out.println();
		}

	}
}