One day, tired from going to school, Tommy wanted to know how many days were left until Saturday. We know that this day was a weekday, and the name of the day of the week was
S
(in English). How many days remained until the first Saturday after this day (counting the Saturday itself, but not counting the day
S
)?
Input
The input is the string
S
(
S
can be
Monday
,
Tuesday
,
Wednesday
,
Thursday
or
Friday
).
Imprint
Display the answer to the problem
Use nested conditions (
elif
for Python and
else if
for other languages).
Examples
# |
Input |
Output |
1 |
Wednesday
|
3
|