Consider the following table :
$\begin{array}{|c|c|c|c|c|} \hline X & A & B & C & D \\ \hline Y & 14 & 3 & 6 & 10 \\ \hline \end{array}$
Here, X represents character and Y represents frequency.
The total number of bits needed to encode a string which has $14$ a's, $3$ b's, $6$ c's and $10$ d's using Huffman Code is _______.