All problems

Problem 808

Day Name from Number

Easy · 10 pts · Math, Basics

Problem

A calendar starts on a Monday, which is day 1; day 2 is a Tuesday, and so on, with the week repeating every 7 days (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday). Given a day number D, print the name of its weekday. The weekday only depends on (D - 1) mod 7, which you can use as an index into an array of the seven names.

Input

A single integer D.

Output

Print the name of the weekday of day D.

Constraints

1 <= D <= 10^9

Example input

10

Example output

Wednesday

Explanation

Day 10 comes 9 days after day 1. Nine days is one week and 2 days, so day 10 is two days after Monday: Wednesday.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Profit or Loss Next: Find All Numbers Disappeared in an Array