P25858 [AtCoder] Saturday
入门
题目描述

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)?

Input

Input is given from Standard Input in the following format:
S

Output

Print the answer as an integer.

Constraints

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

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 部分

样例输入
Wednesday
样例输出
3