#P251. 练41.3 计算星期几

练41.3 计算星期几

Description

If today is Sunday, what day of the week will it be after a^b days?

Input Format

Two positive integers a and b, separated by a single space. (0 < a ≤ 100, 0 < b ≤ 10000)

Output Format

A string representing the day of the week after a^b days.
Where Monday is Monday, Tuesday is Tuesday, Wednesday is Wednesday, Thursday is Thursday, Friday is Friday, Saturday is Saturday, and Sunday is Sunday.

Sample

3 2000
Tuesday