Wuxings(五行) are the five "elements" in Chinese philosophy. They are Fire(火), Water(水), Wood(木), Metal(金), and Soil(土). You can find them on East Asian calendar, where some days (Tuesday through Saturday) are named by the Wuxings.
Some Korean names are given according to Wuxings, so that father's name will have a positive effect to his children. Let's simulate that.
- Fire fertilizes Soil.
- Soil incubates Metal.
- Metal is a container for Water.
- Water nourishes Wood.
- Wood fuels Fire.
These are irrelevent to this challenge, but I'm showing them anyway.
- Fire melts Metal.
- Metal chops Wood.
- Wood penetrates Soil.
- Soil blocks Water.
- Water extinguishes Fire.
Some ideographs have a Wuxing as its radical. Here, only the CJK Ideographs(U+4E00–U+9FFF), a Unicode block, will be considered as of Unicode 1.0.1.
火(U+706B)–爩(U+7229) have Fire as the radical.
水(U+6C34)–灪(U+706A) have Water as the radical.
木(U+6728)–欟(U+6B1F) have Wood as the radical.
金(U+91D1)–钄(U+9484) have Metal as the radical.
土(U+571F)–壪(U+58EA) have Soil as the radical.
All other characters fall in don't care situation.
Some characters, in Unicode's own dictionary, disagree with the categorization above. For example, 泵(U+6CF5) actually doesn't have Water as its radical, but rather "石". For another example, 渠(U+6E20) has ambiguous radical, Water or Wood. Such characters also fall in don't care situation.
After Unicode 1.0.1, Unicode added more characters that has a Wuxing as their radical to the block and other blocks. For example, 龦(U+9FA6) also has Fire as its radical. This detail shall be ignored in this challenge, and such characters also fall in don't care situation.
Given an ideograph having a Wuxing \$W\$ as its radical, output any ideograph whose radical will be positively acted by \$W\$.
Given 溒(U+6E92), it has Water as its radical, so output any ideograph having Wood as its radical, since Water nourishes Wood. For example, 杜(U+675C).
Given 坽(U+577D), it has Soil as its radical, so output any ideograph having Metal as its radical, since Soil incubates Metal. For example, 鉺(U+927A).