loj#P3477. 「ROIR 2021 Day 2」日期
「ROIR 2021 Day 2」日期
Description
Translated from Chinese version of ROIR 2021 Day2 T1 Календарь на Альфе Центавра on this website.
On a exterior planet, there are months in one year, and days in one month, as well as days in a week.
To distinguish different days of a week, humans use words like Monday and Tuesday to do that, while people on that planet use lowercase letters to represent different days in a week.
Given that Year , Month , Day is represented by weekday a
, your task is to find which weekday corresponds to Day , Month , Year .
Input Format
The input file consists of two lines.
In the first line, there are three integers, respectively and three integers in the next line, respectively.
Output Format
Output a letter representing the weekday of the given date.
30 12 7
18 1 2021
b
Constraints
For all subtasks, it is guaranteed that , , , , .
Subtask # | Additional Constraints | Score |
---|---|---|
, | ||
No additional constraints. |