Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/sharqiy-taqvim-boyicha-yil

Year in the Eastern calendar

Medium 1000 ms 64 MB 44%
Share

In the Eastern calendar, years repeat in a cycle of $60$ years. Each year is named after one of $12$ animals, which change every year in this order: sichqon (rat), sigir (ox), yo'lbars (tiger), quyon (rabbit), ajdar (dragon), ilon (snake), ot (horse), qo'y (sheep), maymun (monkey), tovuq (rooster), it (dog), to'ng'iz (pig). The colour changes once every two years in this order: yashil (green), qizil (red), sariq (yellow), oq (white), qora (black). 1984 is yashil sichqon yili (the year of the green rat), 1985 is yashil sigir yili, 1986 is qizil yo'lbars yili. The same order continues for the years before 1984 as well. A year $Y$ is given. Find which colour and which animal the year belongs to.

The circle of the 60-year Eastern calendar made of twelve animals and five colours

Input

One positive integer $Y$.

Output

One line: the colour, the animal and the word yili (year) in lowercase separated by one space (for example, qizil ot yili).

Note

$1 \le Y \le 10^{4}$

Examples

Input #1
1984
Output #1
yashil sichqon yili
Input #2
1985
Output #2
yashil sigir yili

Sign in to submit a solution

Signing up is free and takes a minute.