Problem Description
The Calendar class is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as year, month, day of month, hour, and so on, and for manipulating the calendar fields, such as getting the date of the next week.
You are given a date. You just need to write the method, getDay, which returns the day on that date. To simplify your task, we have provided a portion of the code in the editor.
For example, if you are given the date August 14th 2017, the method should return MONDAY as the day on that date.
Problem Constraints
2000 < year < 3000
Input Format
Input consist of three lines.
The first-line contain a string denoting the month.
Second-line contain a string denoting the day.
The third line contains a string denoting the year.
Output Format
Output the correct day in capital letters.
Example Input
Input 1:
08 05 2015
Example Output
Output 1:
WEDNESDAY
Example Explanation
Explanation 1:
The day on 5th August 2015 is Wednesday.