📅  最后修改于: 2022-03-11 15:01:10.045000             🧑  作者: Mango
n=int(input("input the number of words"))
f=''
for i in range(0,n,1):
c=input("input a word")
d=len(c)
if d<=10:
f=c
else:
f=c[0]+str(d-2)+c[d-1]
print(f)