A Christmas Carol 2

View as PDF

Submit solution

Points: 5
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

It is Christmas Eve and bitter old Ebenezer Scrooge sits in his home.
Unaware of what he is about to be shown.
For the Ghost of Christmas Past has arrived at his house.
Here to show him visions of his former spouse.
Belle is happier than ever, spending Christmas with her family.
Her happiness drives Ebenezer Scrooge to the brink of insanity.
When did they divorce? Ebenezer Scrooge asks.
"Try to remember", says the Ghost of Christmas Past.

Ebenezer Scrooge is being shown visions of his ex-wife, Belle, who is now happily married and spending Christmas with her family. Bitter old Ebenezer Scrooge is reminiscing about the time they spent together. Help him determine exactly how long ago their divorce was. The current date is December 24th 2019. There are 12 months in a year spanning from January to December and each of these months has 28 days, or 4 weeks. Knowing how many days ago their divorce was, determine the exact date on which Ebenezer Scrooge and Belle were no longer a couple.

Input Specification

The only line of input is a single integer n (0 \le n \le 10^5) representing how many days ago the divorce was.

Output Specification

Output the date of the divorce in the format <month> <day> <year>.

Sample Input

3

Sample Output

December 21 2019

Comments

There are no comments at the moment.