WEEK NUMBER#7508

WEEK NUMBER

1 Sekunde
64 Megabyte
Leicht

Manufacturers of computer memory record the production date of a DDR module using the week number and year. For example, the date March 5, 2016, is recorded as the 9th week of 2016. According to the ISO standard, the first week of the year is the one that includes the first Thursday (or January 4th). Consequently, the initial days of January might belong to the last week of the previous year. The weeks are then numbered sequentially, resulting in each year having either 52 or 53 weeks. It's important to note that the final days of a year may sometimes fall into the first week of the following year. The New Year's week is assigned to the year in which its Thursday occurs.

For a given date, your task is to determine and output the corresponding week number and year.

Eingabe

A single line containing a calendar date in the format (day month year), where 1 \le D \le 31, 1 \le M \le 12, and 2001 \le Y \le 2020.

Ausgabe

The week number and year for the specified date.

Beispiele

Beispiel 1

Loading
Loading