Cancer or Scorpio

Alice and Michael is a young couple who are planning on having their first child. Their wish their son Nelson was born on a special date for both of them. Alice has investigated in the internet and has found that the period of gestation is forty weeks. These forty weeks begin to count on the first day of the last menstrual cycle. Michael is passionate about astrology and even more about the zodiac signs, he has asked Alice to investigate the range of dates that correspond to each sign. Sign Aquarius Pisces Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorn Begin January, 21 February, 20 March, 21 April, 21 May, 22 June, 22 July, 23 August, 22 September, 24 October, 24 November, 23 December, 23 End February, 19 March, 20 April, 20 May, 21 June, 21 July, 22 August, 21 September, 23 October, 23 November, 22 December, 22 January, 20 Alice and Michael ask for help to calculate the date of birth of their son Nelson and his zodiac sign. Input The first line of input contains a single integer N, (1 ≤ N ≤ 1000) which is the number of datasets that follow. Each dataset consists of a single line of input that contains only eight digits that represent the date of the first day of the last menstrual cycle in format M M DDY Y Y Y . Output For each dataset, you should generate one line of output with the following values: The dataset number as a decimal integer (start counting at one), a space, the date of birth in format M M /DD/Y Y Y Y , a space, and the name (in lowercase) of zodiac sign that correspond according to the date of birth. Note: Considers leap years. Sample Input 2 01232009 01232008

2/2 Sample Output 1 10/30/2009 scorpio 2 10/29/2008 scorpio