#Lutece3345. Numeronym
Numeronym
Description
A numeronym is a word abbreviated using numbers to represent words or phrases. For example, the word internationalization
can be abbreviated as i18n
-- retaining the first and last letters, counting the number of letters between them, and placing the count in the middle. Since the abbreviation is intended to reduce the length of the word, it is only applied to words with a length greater than , while words with a length less than or equal to remain unchanged.
Given a word, please output its numeronym.
Input
One line containing a string representing the word to be abbreviated (). It is guaranteed that the word contains only lowercase English letters.
Output
One line containing a string representing the resulting numeronym.
Samples
internationalization
i18n
accessibility
a11y
kubernetes
k8s
go
go
Resources
电子科技大学第十五届 ACM 趣味程序设计竞赛