7141: ABC267 —— A - Saturday
[Creator : ]
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)?
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$
$S$
Output
Print the answer as an integer.
Constraints
S is Monday, Tuesday, Wednesday, Thursday, or Friday.
Sample 1 Input
Wednesday
Sample 1 Output
3
It was Wednesday, so there were $3$ days until the first Saturday after that day.
Sample 2 Input
Monday
Sample 2 Output
5