A-R's blog

By A-R, history, 3 years ago, In English

for i in range(int(input())): w = input() if len(w) <= 10: print(w) else: print(w[0] + str(len(w) — 2) + w[-1])

  • Vote: I like it
  • -20
  • Vote: I do not like it

| Write comment?