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.

-----Constraints-----
 - 3 ≤ |s| ≤ 100 (|s| denotes the length of s.)
 - s consists of lowercase English letters.

-----Input-----
Input is given from Standard Input in the following format:
s

-----Output-----
Print the abbreviation of s.

-----Sample Input-----
internationalization

-----Sample Output-----
i18n


Difficulty: introductory

Starter code:

Solutions:
a = input()
print(f"{a[0]}{len(a[1:-1])}{a[-1]}")

s = input()
ans = s[0] + str(len(s)-2) + s[-1]
print(ans)

s = input()
print(s[0] + str(len(s)-2) + s[-1])

s = input()
print((s[0]+str(len(s)-2)+s[len(s)-1]))


import sys


def main():
    s = input()
    N = len(s)
    ans = s[0] + str(N - 2) + s[-1]
    print(ans)


def __starting_point():
    main()

__starting_point()

s = list(input())
a = ''
b = s.pop(0)
c = s.pop()
a += b
a += str(len(s))
a += c
print(a)

s = input()
s1, s2, s3 = s[0], s[1:-1], s[-1]

ans = s1 + str(len(s2)) + s3
print(ans)

s = [i for i in input()]
print(s[0] + str(len(s) - 2) + s[-1])

s=input()
t=len(s)
ans=s[0]+str(t-2)+s[-1]
print(ans)

n = input()
n = list(n)
a = n.pop(0)
b = n.pop()
c = len(n)
print(a+str(c)+b)

s = input()

print(s[0]+str(len(s)-2)+s[len(s)-1])

S = input()
Mid = len(S)-2
print(S[0]+str(Mid)+S[-1])

string = input()
print((string[0] + str(len(string) - 2) + string[-1]))


s = input()
print(s[0]+str(len(s[1:-1]))+s[-1])

s = str(input())
ans = s[0] + str(len(s)-2) + s[-1]
print(ans)

#!/usr/bin/env python3


def main():
    s = input()
    print((s[0] + str(len(s) - 2) + s[-1]))


main()


s = input()
print(s[0] + str(len(s)-2) + s[-1])

S = input()
print((S[0]+str(len(S)-2)+S[-1]))


S = input()

print(S[0]+str(len(S)-2)+S[-1])

s = input()

print(s[0], len(s) - 2, s[-1], sep='')

s = str(input())
print(s[0] + str(len(s) - 2) + s[-1])

S = input()
print(S[0]+str(len(S)-2)+S[-1])

s=input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
n = len(s)-2
print((s[0]+str(n)+s[-1]))


def answer(s: str) -> str:
    return f'{s[0]}{len(s) - 2}{s[-1]}'

def main():
    s = input()
    print(answer(s))

def __starting_point():
    main()
__starting_point()

s=input()
print((s[0]+str(len(s)-2)+s[len(s)-1]))


s = input()
res = s[0] + str(len(s) - 2) + s[-1]
print(res)


s = input()
print(f"{s[0]}{len(s)-2}{s[-1]}")

s=str(input())
n=str(len(s)-2)
p=s[0]+n+s[len(s)-1]
print(p)

s = input()
l = len(s)
print((s[0] + str(l-2) + s[-1]))


s=input()

print(s[0]+str(len(s)-2)+s[-1])

#!/usr/bin/env python3

def main():
    s = input()
    print((s[0]+str(len(s)-2)+s[-1]))


def __starting_point():
    main()

__starting_point()

#ABC069
s = input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
print(s[0] + str(len(s[1:-1])) + s[-1])

a = list(input())

print(a[0] + str(len(a) - 2) + a[len(a) - 1])

s = input()
print(s[0]+str(len(s)-2)+s[-1])

s=input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
n = str(len(s)-2)
print((s[0]+n+s[-1]))


# -*- coding: utf-8 -*-

S = input()

a = len(S)

print((S[0]+str(a-2)+S[-1]))


s = str(input())
print(s[0] + str(len(s) - 2) + s[-1])

S=input()
print((S[0]+str(len(S)-2)+S[-1]))


s = input()
s_len = len(s)
head, tail = s[0], s[s_len - 1]
print((head + str(s_len - 2) + tail))


s=input()
a=len(s)-2
print(s[0]+str(a)+s[len(s)-1])

s = list(input())
print(s[0], len(s)-2, s[len(s)-1], sep='')


s = input()


print(s[0] + str(len(s)-2) + s[len(s) -1])

s=input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
size = len(s)
print((s[0] + str(size - 2) + s[size - 1]))


s = input()

l = len(s) - 2

print(s[0] + str(l) + s[-1])

a,*b,c = input()
print(a,len(b),c,sep="")


s=input()
print(s[0]+str(len(s)-2)+s[-1])

s=input()
print(f"{s[0]}{len(s)-2}{s[-1]}")

s = input()
print(s[0]+str(len(s)-2)+s[len(s)-1])

s = input()
s_c = len(s)-2
print(ｓ[0] + str(s_c) +s[-1])

s=list(input())
y=str(len(s)-2)
print(s[0]+y+s[-1])

S = input()
prefix = S[0]
sufix = S[-1]
content = str(len(S[1:-1]))
print(prefix + content + sufix)

s=input()

print(s[0]+str(len(s)-2)+s[-1])

s = input()
print(s[0] + str(len(s) - 2) + s[-1])

S = input()
print((S[0] + str(len(S) - 2) + S[-1]))


s = input()
print(f'{s[0]}{len(s[1:-1])}{s[-1]}')

# ABC069
s = input()

print((s[0] + str(len(s[0:-2])) + s[-1]))


s = input()
print(s[0] + str(len(s)-2) + s[-1])

s = input()
print(s[0] + str(len(s) - 2) + s[-1])

s = input()
print(s[0] + str(len(s) - 2) + s[-1])

S = str(input())

s_between_len = len(S) - 2

a = S[:1] + str(s_between_len) + S[-1]
print(a)

a=input()
print(f"{a[0]}{len(a)-2}{a[len(a)-1]}")

s = input()
t = str(len(s) - 2)
print(s[0] + t + s[-1])

s = input()
print(s[0] + str(len(s) - 2) + s[-1])

s = input()

print(s[0]+ str(len(s) - 2) + s[-1])

s = input()

l = s[0] + str(len(s)-2) + s[-1]

print(l)

s=input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
s = s[0] + str(len(s) - 2) + s[-1]
print(s)


s=input()

new_s=s[0]+str(len(s[1:-1]))+s[-1]
print(new_s)

s = str(input())

print((s[0] + str(len(s) - 2) + s[-1]))


s=input()
len_a=str(len(s)-2)
print((s[0]+len_a+s[-1]))


s = input()
l = len(s)
print(f'{s[0]}{l-2}{s[l-1]}')

a = input()
print(a[0] + str(len(a) - 2) + a[-1])

s = input()
print(s[0] +str(len(s[1:-1]))+ s[-1])

S = input()
ans = S[0] + str(len(S) - 2) + S[-1]
print(ans)

s=input()
N=len(s)
print(s[0]+str(N-2)+s[N-1])

s = input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
n = len(s[1:-1])
print(s[0]+str(n)+s[-1])

s = input()
print(s[0] + str(len(s)-2) + s[-1])

s = str(input())
ans = s[0] + str(len(s)-2) + s[-1]
print(ans)

s = input()

print(s[0] + str(len(s)-2) + s[-1])

s=input()
print(s[0]+str(len(s)-2)+s[len(s)-1])

s=input()
S=s[0]+str(len(s)-2)+s[-1]
print(S)

s=input()
print(s[0]+str(len(s)-2)+s[-1])

s = input()
print(s[0]+str(len(s)-2)+s[-1])

def main():
    s = input()
    print(f'{s[0]}{len(s) - 2}{s[-1]}')


def __starting_point():
    main()

__starting_point()

s = input()
print((s[0] + str(len(s)-2) + s[-1]))


s = input()
print('{}{}{}'.format(s[0],len(s)-2,s[-1]))

s = input()
print((s[0]+str(len(s)-2)+s[-1]))


s = input()
print(s[0] + str(len(s) - 2) + s[-1])

s = input()
n = str(len(s)-2)
print(s[0]+n+s[-1])

# -*- coding: utf-8 -*-

s = list(input())

num = len(s)
output = s[0] + str(num-2) + s[num-1]

print(output)

# 文字列の入力
s = input()
print(s[0]+str(len(s[1:-1]))+s[-1])

s = input()
print("{}{}{}".format(s[0], len(s)-2, s[-1]))

a=input()
print(a[0]+str(int(len(a)-2))+a[-1])

s = input()
print(s[0] + str(len(s) - 2) + s[-1])