input 9 zhijin or 11 jizhi output 10 jinzhi