The Chinese zodiac is a traditional classification scheme based on the Chinese calendar that assigns an animal and its reputed attributes to each year in a repeating twelve-year cycle. In traditional Chinese culture, the Chinese zodiac is very important and exists as a reflection of Chinese philosophy and culture. Chinese folkways hold that one's personality is related to the attributes of their zodiac animal. Originating from China, the zodiac and its variations remain popular in many East Asian and Southeast Asian countries, such as Japan, South Korea, Vietnam, Singapore, Nepal, Bhutan, Cambodia, and Thailand.
$$$$$$ \begin{array}{|l|l|l|l|l|l|l|} \hline \text { Number } & 1 & 2 & 3 & 4 & 5 & 6 \\ \hline \text { Animal } & \text { Rat } & \text { Ox } & \text { Tiger } & \text { Rabbit } & \text { Loong } & \text { Snake } \\ \hline \text { Number } & 7 & 8 & 9 & 10 & 11 & 12 \\ \hline \text { Animal } & \text { Horse } & \text { Goat } & \text { Monkey } & \text { Rooster } & \text { Dog } & \text { Pig }\\ \hline \end{array} $$$$$$
2024 is a year of loong. The "loong", a creature full of mystery, has long captured the imagination of the Chinese. Chinese people have revered the loong since ancient times, believing the immortal creature brings good fortune, wisdom, and immense power. For thousands of years, the loong has eventually become the spiritual and cultural symbol of the Chinese nation.
Colin loves to research the relationship between the zodiac and years, but he is not good at math. So he turns to you for help! Now, given a year $$$x$$$, Colin wants to know the nearest year of loong after this year.
A single positive integer $$$x\ (1\le x\le 9999)$$$
A single integer, representing the answer.
2022
2024
2024
2036
9999
10004