~/algor $ cat problems/case-sananing-hafta-kuni
Weekday of a date
Medium
1000 ms
64 MB
45%
In a non-leap year, January 1 is day $w$ of the week: $1$ — Dushanba, $2$ — Seshanba, $3$ — Chorshanba, $4$ — Payshanba, $5$ — Juma, $6$ — Shanba, $7$ — Yakshanba (Monday through Sunday). Find which day of the week day $d$ of month $m$ of this year is. Months $1, 3, 5, 7, 8, 10, 12$ have $31$ days, months $4, 6, 9, 11$ have $30$ days, and February has $28$ days.
Input
One line with three integers: $w$, $d$ and $m$.
Output
The name of the day, starting with a capital letter (for example, Chorshanba).
Note
$1 \le w \le 7$
$1 \le m \le 12$
$1 \le d \le 31$
The date is guaranteed to be valid.
Examples
Input #1
1 3 1
Output #1
Chorshanba
Input #2
4 1 3
Output #2
Yakshanba