12878 - The Easiest Fortune Telling   

Description

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
.

Input

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

Output should follow below format:

X

Note that:

  1. Need to have a return value('\n') at the end of your string.
  2. X is one of “Xiong”, “Mo-Ji ”, “Xiao-Ji”, “Da-Ji ”.
  3. 兇 = Xiong; 末吉 = Mo-Ji; 小吉 = Xiao-Ji; 大吉 = Da-Ji.

Sample Input  Download

Sample Output  Download

Tags




Discuss