There is a fortune telling method that tells you how your fortune is of the year by calculating the day of the week your birthday falls on that year.
As shown in the table below, if your birthday is Monday in 2020, that means you might be bad luck this year; otherwise, if your birthday is Saturday, that means this year you get an extremely good luck!
|
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
Sun |
|
兇 |
末吉 |
末吉 |
小吉 |
小吉 |
大吉 |
小吉 |
Given two integers to represent the date of one’s birthday. Please Write a C Program to tell their fortune in 2020
.
Two integers M(month), D(day).
Note that M and D follow the date rules in 2020, which means any illegal dates in 2020 like M = 2, D = 30 would not be a test case.
Output should follow below format:
X
Note that: