Given an integer $n$, where $1 \leq n \leq 100$, process the next $n$ lines. Each line will have a single string $s$, consisting of lowercase letters and with $1 \leq \abs{s} \leq 100$.
If $\abs{s} > 10$, we simply remove all but the first and last characters of $s$ and replace the cut text with an integer value, indicating the number of characters removed. Otherwise, $\abs{s} \leq 10$ and you should print $s$ as your output.