// Arup Guha
// 7/28/2010
// Solution to BHCSI Contest Problem: Jill

import java.util.*;
import java.io.*;

public class jill {
	
	public static void main(String[] args) throws Exception {
		
		// Get number of trips.
		Scanner fin = new Scanner(new File("jill.in"));
		int numTrips = fin.nextInt();
		
		// Go through each trip.
		for (int i=1; i<=numTrips; i++) {
			
			// Read in the two values and output the answer!
			int total = fin.nextInt();
			int bus = fin.nextInt();
			System.out.println("Trip "+i+": Jill left behind "+(total-bus)+" people.");
		}
	}	
}