// Arup Guha
// 9/17/2013
// Solution to 2012 UCF HS Contest Problem: Force

import java.util.*;
import java.io.*;

public class force {

	public static void main(String[] args) throws Exception {

		Scanner fin = new Scanner(new File("force.in"));
		int n = fin.nextInt();

		// Banger problem: output each product.
		for (int loop=1; loop<=n; loop++) {
			int m = fin.nextInt();
			int a = fin.nextInt();
			System.out.println("Force #"+loop+": "+(m*a));
		}

		fin.close();
	}
}