As you know, there are three kinds of Chinese input methods commonly used: Wubi, Pinyin and Shuangpin. With Shuangpin, you can type any Chinese word by pressing keys only twice.
Pinyin | Sequence | Pinyin | Sequence |
q, iu | q | f, en | f |
w, ei | w | g, eng | g |
e | e | h, ang | h |
r, uan | r | j, an | j |
t, ue | t | k, uai, ing | k |
y, un | y | l, uang, iang | l |
u, sh | u | z, ou | z |
i, ch | i | x, ia, ua | x |
o, uo | o | c, ao | c |
p, ie | p | v, zh, ui | v |
a | a | b, in | b |
s, ong, iong | s | n, iao | n |
d, ai | d | m, ian | m |
Attention that:
OK, now you are already a MASTER of Shuangpin! Please output the keys sequence to type the given sentences. For example, "ni hao shi jie" will be "ni hc ui jp".
There are multiple test cases. Each line contains one.
Each line is a sequence of pinyin separated by spaces.
It is guaranteed that the number of test case is no more than 1000, the number of pinyin in one test case is no more than 500, and the number of pinyin in all the test cases is no more than 5000.
The keys sequence separated by spaces.
rua ni xian qi po lan rang wo men dang qi shuang jiang cha na zhua zhu le wei lai zhe ti mian shen me wan yi
rx ni xm qi po lj rh wo mf dh qi ul jl ia na vx vu le ww ld ve ti mm uf me wj yi
ni you ben shi na lai mai a wo e le wo men chi shen me ang yang de dou zhi
ni yz bf ui na ld md aa wo ee le wo mf ii uf me ah yh de dz vi
Name |
---|