Start The Week
Time: 1 s
Memory: 125 MB
Memory: 125 MB
You are given a string \(\boldsymbol{s}\), representing the name of a day of the week. It is guaranteed that \(\boldsymbol{s}\) is one of the following:
"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday".
Your task is to print the names of all seven days of the week in order, starting from the given day \(\boldsymbol{s}\). Each day must be printed on its own line. After reaching Friday, the sequence should wrap around to Saturday.
"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday".
Your task is to print the names of all seven days of the week in order, starting from the given day \(\boldsymbol{s}\). Each day must be printed on its own line. After reaching Friday, the sequence should wrap around to Saturday.
Input
A single line containing the string s — the name of the starting day.It is guaranteed that \(\boldsymbol{s}\) is one of the seven valid days and starts with an uppercase letter followed by lowercase letters.
Output
Print \(\boldsymbol{7}\) lines. Each line should contain a day of the week, in the correct order starting from s.
Examples
| Input | Output |
|---|---|
|
Saturday
|
Saturday
Sunday Monday Tuesday Wednesday Thursday Friday |
Notes
The days of the week are always considered in this fixed order:
Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday.
Each printed day must have the first character uppercase, and all other characters lowercase.
Problem Info
| Problem ID | 490 |
| Time Limit | 1000 ms |
| Memory Limit | 128000 KB |
| Moderators | AhsanSaif , muhimin , mahdi_talukder , Royboy01 |
Statistics
Submit
You need to Login or Registration for submit your solution