The age of a group of people in the list is known. Which person is listed first: the oldest or the youngest? If there are several oldest (youngest) ones, then take into account the one who met earlier.
Input
The first line contains the number N - the number of people in the list (1<N<=100). The second line contains N numbers - the age of the people in the list (each number is in the range from 0 to 120).
Imprint
Display the word
OLD
, if the oldest person occurs first in the list, otherwise the word
YOUNG
if the youngest occurs first.
Examples
# |
Input |
Output |
1 |
10
67 99 43 95 32 107 65 104 1 31
|
OLD |
2 |
10
1 99 43 95 32 107 65 104 1 31
|
YOUNG |