ICPC Vietnam National Programming Contest 2020 - Open

#### Start

2020-11-14 21:00 AKST

## ICPC Vietnam National Programming Contest 2020 - Open

#### End

2020-11-15 02:00 AKST
The end is near!
Contest is over.
Not yet started.
Contest is starting in -250 days 21:57:42

5:00:00

0:00:00

# Problem AAstrological 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:

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

## 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