The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`.  You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way.
s = input()
s_list = list(s)
print(s_list)
l = len(s_list) - 2
a = s_list[0] + str(l) + s_list[-1]
print(a)
s = input()
s_list = list(s)
l = len(s_list) - 2
a = s_list[0] + str(l) + s_list[-1]
print(a)