“... so forward this to ten other people, to prove that you believe the emperor has new clothes.” Aren’t those sorts of emails annoying? Martians get those sorts of emails too, but they have an innovative way of dealing with them. Instead of just forwarding them willy-nilly, or not at all, they each pick one other person they know to email those things to every time - exactly one, no less, no more (and never themselves). Now, the Martian clan chieftain wants to get an email to start going around, but he stubbornly only wants to send one email. Being the chieftain, he managed to find out who forwards emails to whom, and he wants to know: which Martian should he send it to maximize the number of Martians that see it? Input The first line of input will contain T (≤ 20) denoting the number of cases. Each case starts with a line containing an integer N (2 ≤ N ≤ 50000) denoting the number of Martians in the community. Each of the next N lines contains two integers: u v (1 ≤ u,v ≤ N, u ̸= v) meaning that Martian u forwards email to Martian v. Output For each case, print the case number and an integer m, where m is the Martian that the chieftain should send the initial email to. If there is more than one correct answer, output the smallest number. Sample Input Sample Output 3 3 12 23 31 4 12 21 43 32 5 12 21 53 34 45 Sample Output Case 1: 1 Case 2: 4 Case 3: 3