#SDNU1492. Problem_A
Problem_A
Description
SDNU ACM-ICPC Association is in a mess. If you join it, you should be in the shadow of a person. This person, we call him "dalao".
For example, there are two rookies, and , rely on . We can say that is the closest dalao of rookies and .
For another example, have two heelers and , have two heelers and .We can know that is the closest dalao of and .
But with the growth of Association, we cannot find the closest dalao between two rookies. So we need your help.
Format
Input
There will be a series of examples.
For each input, the first line contains two integers . means the number of people.
Followed by the lines, each line contains two integers and . It means that is a dalao of .
Then the next line, contains two integers and . It means that we want to know who is the closest dalao between and .
Output
For each input, you should output the name of the closest dalao.If you cannot find this dalao, you should output "I am so bad."
Samples
7
1 2
1 3
2 5
2 6
6 7
6 8
3 5
1
Hints
Remember that a rookie is also a dalao of itself
For example:
Input
3
1 2
2 3
2 3
Output
2