title: How to replace letters with numbers in c++?
body: <p>Let's consider a word too long, if its length is strictly more than 10 characters. All too long words should be replaced with a special abbreviation.</p>
  
  <p>This abbreviation is made like this: we write down the first and the last letter of a word and between them we write the number of letters between the first and the last letters. That number is in decimal system and doesn't contain any leading zeroes.</p>
  
  <p>E.g, "localization" will be spelled as "l10n", and "internationalization» will be spelled as "i18n. 
  <br> Input: <br> 
  localization <br>
  internationalization <br>
  Output:<br> l10n <br>
  i18n</p>