CODEIT03 - Play with Dates

Given the date, month and year, find the day.

Input

The first line consists of an integer t, the number of test cases. Then for each test case there are three integers the day, month and year.

Output

For each test case print the day in words in a separate line (the first character should be capitalised followed by lowercase).

Constraints

1 ≤ t ≤ 100

Date/month/year ≥ 11/01/2012

Date/month/year ≤ 31/12/3000

The given date will always be a valid date.

Example

Input:
3
11 1 2012
12 1 2012
13 1 2012

Output:
Wednesday
Thursday
Friday

Added by:cegprakash
Date:2012-01-09
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All

hide comments
2015-07-12 19:27:23 Shubhransh Srivastav
http://www.spoj.com/submit/CODEIT03/id=14655301
wa always though getting test cases correct.. someone help plz :(
2015-06-24 14:50:36 kp
after each WA .. got one tricky case :P AC :)
2015-05-31 09:52:27 i_am_looser
Google it.... ;)
2015-05-24 06:47:02 kartikay singh
_/\_ problem setter B-)
2015-05-23 14:29:57 Souvik Mondal
silly mistake....first letter is in caps.
got ac in 3rd attempt due to this :-(
2015-02-23 18:07:58 Dushyant Singh
Good Question! Finally AC! :-)
2014-12-21 11:51:13 Insomniac
Learned a new thing......
nice question
2014-12-10 21:02:14 Nikhil Sheoran
Some nice tricky test cases
2014-12-08 21:52:49 ivar.raknahs
PlZ move this to tutorial.
2014-10-15 19:48:59 Tushar Sinha
Don't misspell the days of the week!
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.