Problem:


Score : 200 points

Problem Statement

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 1

internationalization

Sample Output 1

i18n

Sample Input 2

smiles

Sample Output 2

s4s

Sample Input 3

xyz

Sample Output 3

x1z



Sample input:
internationalization


Sample output:
i18n

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
S = str(input())
T,U = S[0],S[-1]
print(S[0]+len(S[1:-2])+S[-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
print(s[0]+int(len(s-2))+s[-1])

Submission status: Runtime Error

Solution code:
s = input()
t = ""
count += 0
for i in range(len(s)):
  if i == 0:
    t += s[i]
  elif i == len(s) - 1:
    t += s[i]
  else:
    count += 1
    if i == len(s) - 2:
      t += str(count)
print(t)

Submission status: Runtime Error

Solution code:
S = input()
l = S.__len__()
print('%s%s%s' % [S[0], l-2, S[l-1]]

Submission status: Runtime Error

Solution code:
s = input()
c = s.count()
print(s[0:1] + str(c) + s[-1:])

Submission status: Runtime Error

Solution code:
s = input()
c = s.count()
print(s[1:1] + str(c) + s[-1:1])

Submission status: Runtime Error

Solution code:
str = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
print(a[0]+len(a)-2+a[-1])

Submission status: Runtime Error

Solution code:
s = input()
print(s[0] + ( len(s)-2) + s[-1])

Submission status: Runtime Error

Solution code:
s = input()
print(s(0) + ( len(s)-2) + s(-1))

Submission status: Runtime Error

Solution code:
# input
s = input()

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

print(ans)

Submission status: Runtime Error

Solution code:
S = input()

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

Submission status: Runtime Error

Solution code:
S = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
str = input('')
start = str[:1]
end = str[-1:]
print(start + (len(str) - 2) + end)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf8 -*-
s = input()
if s => 3:
    if s <= 100:
        print(s[0],len(s)-2,s[-1])

Submission status: Runtime Error

Solution code:
print(head + str(len(mid)) + tail)

Submission status: Runtime Error

Solution code:
str = raw_input()
print str[0] + str(len(str)-2) + str[-1]

Submission status: Runtime Error

Solution code:
a = input()
b = len(a)
print(a[0] + str(b) + a[b])

Submission status: Runtime Error

Solution code:
s = input()
a = len(s)
print(s[0] + (a-2) + s[-1])

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
S = input()

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

Submission status: Runtime Error

Solution code:
import math
N = input()
A = list(map(int, input().split()))

f,e,d = 0,0,0

for a in A:
    x = a % 4
    if(x==0):
        f = f+1
    elif(x==2):
        e = e+1
    else:
        d = d+1
if(e>0): d = d+1
if(d <= math.ceil(len(A)/2)):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
string=input()
first=string[0]
last=string[len(string)-1]
mid=str(len(string[1:len(string-1)]))
print(first+mid+last)

Submission status: Runtime Error

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