local function NumToCN(num)
    local size = #tostring(num)
    local CN = ""
    local StrCN = {"","","","","","","","",""}
    for i = 1 , size do
        CN = CN .. StrCN[tonumber(string.sub(tostring(num), i , i))]
    end
    return CN
end
print(NumToCN(56665))