For each word, follow these steps:
Read the word from input.
Check its length. If length is 10 or less, print the word unchanged.
If length exceeds 10, construct the abbreviation: first character, then (length - 2) as a number, then last character. The length minus 2 calculation gives you the count of middle characters that get replaced. For "internationalization" (20 chars), the middle count is 20 - 2 = 18, giving "i18n".