This problem is used in private contest:进制转换