LogiQuest

329. Day of the Week

MediumCalendarZeller

Print the day of the week (Monday … Sunday) for a Gregorian date.

Input format

A single line: d m y

Output format

The weekday name.

Example 1

Input

18 10 2026

Output

Sunday

Example 2

Input

1 1 2000

Output

Saturday

Constraints

1 ≤ y ≤ 9999

Read input from standard input and print the answer to standard output. Your code is judged against 5 test cases, most of them hidden.

Loading the MyLoginn IDE…