Astrological Sign

Harry Potter and his friends are now fourth-year students at Hogwarts School of Witchcraft and Wizardry. This year, one of their subjects is Astrology. To become a successful wizard, Astrology is crucial, as it allows one to predict future events or gain insights into people’s personalities and relationships.

In the first lecture, Harry Potter and his friends need to learn and understand Astrological Signs. One’s Astrological Sign is determined by their birthday, according to the following table:

\includegraphics[width=0.7\textwidth ]{A.jpg}

For example, if one’s birthday is on May 5th, their Astrological Sign is Taurus, as it lies between Apr 21st and May 20th.

Today Harry Potter wants to determine the Astrological Sign of all his classmates. Please help him!

Input

The first line of the input contains a single integer $t$ $(1 \le t \le 1\, 000)$ — the number of Harry Potter’s classmates.

In the next $t$ line, each line contains a birthday in the format d m, where d is the date, and m is the first three letters of the name of the month (with the first letter in uppercase, the second and third letters in lowercase). It is guaranteed that all the given dates are valid.

Output

Print $t$ lines, each line contains the name of the Astrological Sign.

Sample Input 1 Sample Output 1
2
5 May
30 Jul
Taurus
Leo