You can experiment with compressing the input text with Canonical Huffman code.