STOLEN PICTURES --------------- There has been a robbery at a local museum. Security experts have determined that the robbery took place during a 5 minute period when the fire alarm went off, 12:20-12:25 pm. The security camera tapes have been analyzed using modern image processing algorithms. You are given the output of this analysis in the form of who entered or left the museum and when. Your job is to use this data to identify the robber. Input There are n sets of input. Your program must produce a line of output for each case. The first line of the input is the number of cases n. This is followed by any number of entrance or exit records in the form "person action time" (see the 'Sample Input' section below). The list of exit/entrance records is terminated by a line containing a single 0. The next input starts from the next line onwards. For simplicity assume that the people are numbered 1 through n (n < 1000). All entry and exit times are integers. Times go from 0 to 23. You may also assume that the inputs will be such that there will be at least one person in the building between 12 and 1. Output If there was only one person in the building at the time of the robbery, then identify him as the robber. If there was more than one person, the robber cannot be determined and so your program should output the phrase "Ambiguous input". Sample Input 2 1 enters 9 2 enters 9 1 leaves 10 3 enters 10 2 leaves 11 3 leaves 13 0 1 enters 9 2 enters 9 1 leaves 10 3 enters 10 1 enters 11 2 leaves 11 3 leaves 13 1 leaves 14 0 Sample Output 3 is guilty Ambiguous input