Hangul resyllabification by pv2b

u=unichr
while 1:a,b=map(ord,raw_input().decode('U8'));print(u(a-(a-16)%28)+u(b-98*(ord('ZT<HB<6*$\x1e\x18\x12<~x<r<<l`'[a%28-4])-60))).encode('U8')

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top