LYX is a handsome boy in HNU who likes math very much. One day his girlfriend JY asked LYX a simple problem: “Today is Sunday, what day of week will it be after $400^{600}$ days, and what about $120^{714}$?” LYX is very smart and answered: That will be Monday and Sunday.
Now LYX summarizes this problem as follows:
'a' denote the day of week today ('a' belongs to {Mon, Tue, Wed, Thu, Fri, Sat, Sun}), what is the date after $N^M(1≤N \lt 10^{10000},6≤M \lt 10000)$ day(s) ? We guaranteed that $M$ is exactly divided by $6$.
There is $1$ line, containing $1$ string and $2$ integers. The integers are $N$ and $M$ described above, separated by a space.
Output a string s representing the date of the that day.
The string $s$ should belong to $\{Mon, Tue, Wed, Thu, Fri, Sat, Sun\}$.