// Danny Wasserman
// 7/26/2011
// Solution to BHCSI Contest Question: Coaster

import java.io.*;
import java.util.*;

public class coaster
{
	public static void main(String[] args) throws IOException
	{
		Scanner in = new Scanner(new File("coaster.in"));
		//Read in the number of test cases
		int cases = in.nextInt();
		//Run through all the test cases.
		for(int tc = 1; tc <= cases; tc++)
		{
			//Read in the number of rollercoasters that are in the park
			int numcoasters = in.nextInt();
			
			//Create a counter variable that will hold the total number of loops on the rollercoasters
			int totalLoops = 0;
			
			//Run through all the coasters and add all the loops in them together
			for(int i = 0; i < numcoasters; i++)
				totalLoops += in.nextInt();
				
			//Print out the answer.
			System.out.println("Park #" + tc + ": There are a total of " + totalLoops + " loops.");
		}
	}
}