Untitled
unknown
plain_text
2 years ago
220 B
9
Indexable
#dlinnie slova
m = int(input())
A = []
for i in range(m):
n = input()
f = ""
if len(n) > 10:
f += n[0]
f += str(len(n)-2)
f += n[-1]
A.append(f)
else: A.append(n)
print(*A)Editor is loading...