Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = input()
- string = []
- x=0
- for x in range(i):
- string.append(raw_input())
- while(x<i):
- s = string[x-1]
- if len(s) >= 10:
- print str(s[0]) + str(len(s)-2) + str(s[len(s)-1])
- else:
- print s
- x=x+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement