Who would win if Tung Tung Tung Tung Tung Tung Tung Tung Tung Sahur fought Tralalero Tralala? After watching Instagram Reels all day, Donghyun decided to write a program that determines which Italian brainrot character wins in fights.
You may freely decide which character wins in a fight between two characters. However, your imagination must satisfy the following condition.
For any three distinct characters , , and , if character wins against character , and character wins against character , then character must win against character .
You are given the names of Italian brainrot characters and queries. For each query, print which character wins.
All answers must come from one fixed valid imagination. If there are multiple valid answers, you may print any one of them. If the same character is given twice in a query, that character wins.
Input
The input is given in the following format.
is the name of the -th character. and are the two character names in the -th query.
Output
Print lines.
On the -th line, print the name of the character that wins in the -th query. All printed answers must be consistent with one fixed valid imagination.
Constraints
- .
- Every character name is a nonempty string consisting only of lowercase English letters.
- All character names are distinct.
- The sum of the lengths of all character names does not exceed .
- Every name appearing in a query is one of the given character names.
Subtasks
Samples
예시에서는 tungtungtungtungsahur가 tralalelotralala를 이긴다고 상상할 수 있다.
해설
관리자가 작성한 해설을 별도 페이지에서 볼 수 있어요.