Problem2422--Saturday

2422: Saturday

[Creator : ]
Time Limit : 2.000 sec  Memory Limit : 1024 MB

Description

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




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


Input

Input is given from Standard Input in the following format:

Output

Print the answer as an integer.

Sample Input Copy

Wednesday

Sample Output Copy

3

Source/Category

 AtCoder