In early recorded Chinese history, time was reckoned using the sexagenary (60-year) cycle, generated from two subcycles:
The combinations between these two sub-cycles result in a 60-year cycle where no two years are the same — for example, the 5 years of the Rat have 5 different elements: 1924 Wood Rat, 1936 Fire Rat, 1948 Earth Rat, 1960 Metal Rat, 1972 Water Rat.
The first 14 years of the current cycle are shown in the table below:
| Gregorian Year | Stem | Branch |
|---|---|---|
| 1984 | Wood | Rat |
| 1985 | Wood | Ox |
| 1986 | Fire | Tiger |
| 1987 | Fire | Rabbit |
| 1988 | Earth | Dragon |
| 1989 | Earth | Snake |
| 1990 | Metal | Horse |
| 1991 | Metal | Sheep |
| 1992 | Water | Monkey |
| 1993 | Water | Rooster |
| 1994 | Wood | Dog |
| 1995 | Wood | Pig |
| 1996 | Fire | Rat |
| 1997 | Fire | Ox |
These days, the sexagenary cycle is used mainly for historical celebrations and events, and in Chinese astrology. The Gregorian calendar is now the standard means of reckoning time.
Create a function that takes a number representing a year in the Gregorian calendar, and returns a string consisting of the corresponding stem-and-branch combination in the sexagenary cycle.
sexagenary(1971) ➞ "Metal Pig"
sexagenary(1927) ➞ "Fire Rabbit"
sexagenary(1974) ➞ "Wood Tiger"
N/A