102670: [AtCoder]ABC267 A - Saturday

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

One day, tired from going to school, Takahashi wanted to know how many days there were until Saturday.
We know that the day was a weekday, and the name of the day of the week was $S$ in English.
How many days were there until the first Saturday after that day (including Saturday but not the starting day)?

Constraints

  • $S$ is Monday, Tuesday, Wednesday, Thursday, or Friday.

Input

Input is given from Standard Input in the following format:

$S$

Output

Print the answer as an integer.


Sample Input 1

Wednesday

Sample Output 1

3

It was Wednesday, so there were $3$ days until the first Saturday after that day.


Sample Input 2

Monday

Sample Output 2

5

Input

题意翻译

输入一个日期,问还有几天到达下个星期六。

Output

分数:100分

问题描述

有一天,放学后感到疲惫的高桥想要知道距离周六还有多少天。
我们知道那一天是一个工作日,而且那天的英文名字是$S$。
从那一天起,到第一个周六(包括周六,但不包括开始的那一天)还有多少天呢?

约束条件

  • $S$是MondayTuesdayWednesdayThursdayFriday

输入

从标准输入以如下格式给出输入:

$S$

输出

以整数形式输出答案。


样例输入1

Wednesday

样例输出1

3

那天是周三,所以距离第一个周六还有$3$天。


样例输入2

Monday

样例输出2

5

加入题单

上一题 下一题 算法标签: