URI Online Judge | 2961

Too many movies!

By Samuel Eduardo da Silva, IFSULDEMINAS/UFF BR Brazil

Timelimit: 1

Cinema is one of the most entertaining yet expensive entertainments in Brazil. Fortunately, over the years, many films have reached the Tupiniquins lands. Nicole is a cinematic girl, and loves all genres. Every year she attends many films and makes her mark for the Oscars (annual awards). Years have passed and she has hit many categories. However, Nicole would like to further improve her hunches. For this, I would like to analyze all your hunches from previous years, and observe in which categories are wrong most, so that in the current year, pay more attention to these categories. The main categories of the Oscars are: Best Picture, Best Director, Best Actress, Best Actor. And only these categories matter for this problem (there are 24 currently). To facilitate, we will list the categories from 1 to 4. Tarantino's newest film, his favorite director, has just left, and Nicole is very busy watching, so he asked you, given the list of Oscar nominees, and your hunches, N years, indicate in which categories focus on the current year.

Input

The first line of the entry contains an integer N(0 < N ≤ 100), indicating the number of years Nicole throbbed over the Oscar. Each year contains the message "Guesses" followed by 4 lines indicating Nicole's hunches for each category. At the end of each year, it contains the message "Winners" and follows another 4 lines, indicating who was the winner of each category, respectively.

Each nominated name must be a maximum of 100 characters, and may contain lowercase letters, uppercase letters, digits and spaces.

Output

List of categories in which Nicole should focus more on the current year, separated by a blank.

Input Sample Output Sample

2
Palpites
Roma
Alfonso Cuaron
Glenn Close
Christian Bale
Vencedores
Green Book
Alfonso Cuaron
Olivia Colman
Rami Malek
Palpites
A Forma da Agua
Guilhermo del Toro
Sally Hawkins
Daniel DayLewis
Vencedores
A Forma da Agua
Guilhermo del Toro
Frances McDormand
Gary Oldman

3 4