Datumi
Write a program that, given a date in 2009, determines the day of week on that date.
InputThe first line contains two positive integers D and M separated by a space. The numbers will be a valid date in 2009.
OutputOutput the day of the week on D. M. 2009. The output should be one of the words "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" or "Sunday".
Input:
1 1Output:
ThursdayInput:
17 1Output:
SaturdayInput:
25 9Output:
FridaySubmit solution
Sign in to submit a solution.