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: Wrong Answer

Solution code:
s = list(input())

c = 0
while True:
  if s[c] == s[-1]:
    break
  else:
    c += 1
    
if s[-1] == s[0]:
  co = len(s) - c - 2
else:
  co = len(s) - c - 1
  
if co == 0:
  co = 1
ans = "{0}{1}{2}".format(s[0],co,s[-1])
print(ans)

Submission status: Wrong Answer

Solution code:
s=str(input())
n=str(len(s)-2)
p="i"+n+"n"
print(p)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
#-------------
S = input()
#-------------
print(S[0]+str(len(S)-2)+S[-1])

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
#-------------
S = input()
#-------------
n = len(S)
print(S[0]+str(n-2)+S[-1])

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
#-------------
S = input()
#-------------
S = list(S)
n = len(S)
print(S[0]+str(n-2)+S[-1])

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
#-------------
S = input()
#-------------
S = list(S)
n = len(S)
print(S[0] + str(n-2) + S[-1])

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
#-------------
S = input()
#-------------
S = list(S)
n = len(S)
print(S[0] + str(n-2) + S[n-1])

Submission status: Wrong Answer

Solution code:
S = input()
n = str(len(S)-2)
res = S[0]+n+S[len(S)-1]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
st_list = list(input())

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
a = ""
for i in range(1,len(s)-1):
    a += s[i]
ans = len(a)
print(s.replace(a,str(ans)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
t = 0
for i in range(1,len(s)-2):
    t += 1
print(s[0] + str(t) + s[len(s)-1])

Submission status: Wrong Answer

Solution code:
# -*- coding: <encoding name> -*-

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

Submission status: Wrong Answer

Solution code:
a,*b,c=input()
print(a,str(len(b)),c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
she = s[0]
srev = s[::-1]
stai = srev[0]
long = len(s) - 2
print(she,long,stai)

Submission status: Wrong Answer

Solution code:
s = input()
she = s[0]
srev = s[::-1]
stai = srev[0]
long = len(s) - 2
print('she''long''stai')

Submission status: Wrong Answer

Solution code:
str=input()

a=str[0]
b=str[len(str)-1]
c=len(str)-2

print(a,c,b)

Submission status: Wrong Answer

Solution code:
word = list(input())

rep_word = []
num_abb = len(word) - 2

rep_word.append(word[0])
rep_word.append(str(num_abb))
rep_word.append(word[-1])

print(''.join(word))

Submission status: Wrong Answer

Solution code:
s=input()
mojisuu=len(s)
tyuukanmojisuu=len(s)-2
s_list=list(s)
print(s_list[0],tyuukanmojisuu,s_list[mojisuu-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = list(input())

M = []

M.append(N[0])
M.append(str(len(N)))
M.append(N[-1])

date = ''.join(M)
print(date)

Submission status: Wrong Answer

Solution code:
def func3(s):
    return s[0] + str(len(s)-2) + s[-1]

Submission status: Wrong Answer

Solution code:
s=input()
count=0
for i in range(len(s)):
    if i == 0 or i == len(s)-1:
        continue
    else:  
        count=count+1

print(count)
r=s[0] + "" + str(count) + "" + s[len(s)-1]

print(r)

Submission status: Wrong Answer

Solution code:
n = input()
m = len(n)
print(n[0],m-2,n[-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
a = len(s)-2
print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
num = int(len(s)-2)

print(str(s[1])+str(num)+str(s[-1]))

Submission status: Wrong Answer

Solution code:
s = input()
num = int(len(s)-2)

print(s[1]+str(num)+s[-1])

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    S = list(map(str, sys.stdin.readline()))

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, *b, c = sys.stdin.readline()

    print(a+str(len(b))+c)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, *b, c = map(str, sys.stdin.readline())

    print(a+str(len(b))+c)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, *b, c = str(sys.stdin.readline())

    print(a, str(len(b)), c, sep="")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, *b, c = str(sys.stdin.readline())

    print(a+str(len(b))+c)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, *b, c = sys.stdin.readline()

    print(a, str(len(b)), c, sep="")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, *b, c = sys.stdin.readline()

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

a = s[1]
b = s[2:len(s)-1]
c = s[-1]

print(a+b+c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(input().replace("2017","2018"))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

print(s[0] + s[1:-1] + s[-1])

Submission status: Wrong Answer

Solution code:
s = input()

print(len(s[1:-1]))

Submission status: Wrong Answer

Solution code:
S = input()


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
a=list(map(str,input().split()))
print(''.join(a[0]+str(len(a)-2)+a[-1]))

Submission status: Wrong Answer

Solution code:
a=list(map(str,input().split()))
print(a[0]+str(len(a)-2)+a[-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
x = a[1:-1]
print(a.replace(x,str(len(x))))

Submission status: Wrong Answer

Solution code:

s = input()

number = len(s) - 2
print(s[0])

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
L = len(S)
print( S[:2] + '(L-2)' + S[(L-1):] )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
t=input()
a,*b,c=t
print(a,str(len(b)),c)

Submission status: Wrong Answer

Solution code:
N=input()
Ini=N[0]
End=N[len(N)-1]
Med=len(N)

LIST=[Ini,str(Med),End]
print("".join(LIST))

Submission status: Wrong Answer

Solution code:
s = input()

a = s[0]
b = len(s) -2
c = s[-1]

print(a,b,c)

Submission status: Wrong Answer

Solution code:
s = input()
print(s[0], str(len(s)), s[-1], sep='')

Submission status: Wrong Answer

Solution code:
s = input()
print(s[0], len(s), s[-1], sep='')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list=[s for s in input()]
med=len(list)
print(list[0]+str(med)+list[med-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
lis = [s[:1],str(len(s)),s[-1]]
print("".join(lis))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
row = input().split()
s = list(row[0])
num = len(s) - 2
ans = []
ans.append(s[0])
ans.append(num)
ans.append(s[len(s)-1])
ans = list(map(str, ans))
print(ans)
print("".join(ans))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

s_mid_len = len(s) - 2
print(s_mid_len)

T = s[0] + str(s_mid_len) + s[-1]
print(T)

Submission status: Wrong Answer

Solution code:
S = 'internationalization'
print(S[0] + str(len(S[1:len(S)-1])) + S[len(S)-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

s = s.replace(s[1:len(s)-1], str(len(s)-2), 1)
print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

print(len(s) - 2)

Submission status: Wrong Answer

Solution code:
import sys

s = str(sys.stdin.readline())

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

Submission status: Wrong Answer

Solution code:
s = str(input())

print("i{}n".format(len(s) - 2))

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.readline
S = input()
size = len(S)
print(S[:1] + str(len(S[2:size])) + S[size-1:])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(sorted(map(int,"2 1 4 3".split())))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

lines = sys.stdin.readlines()

res = ''
cnt = 0
for n, c in enumerate(lines[0]):
  if n == 0:
    res += c
  elif n == len(lines[0]) - 1:
    res += str(cnt)
    res += c.strip()
  else:
    cnt += 1
print(res)

Submission status: Wrong Answer

Solution code:
import sys

lines = sys.stdin.readlines()

res = ''
cnt = 0
for n, c in enumerate(lines[0]):
  if n == 0:
    res += c
  elif n == len(lines[0]) - 1:
    res += str(cnt)
    res += c
  else:
    cnt += 1
print(res.strip())

Submission status: Wrong Answer

Solution code:
import sys

lines = sys.stdin.readlines()

res = ''
cnt = 0
for n, c in enumerate(lines[0]):
  if n == 0:
    res += c
  elif n == len(lines[0]) - 1:
    res += str(cnt)
    res += c
  else:
    cnt += 1
print(res)

Submission status: Wrong Answer

Solution code:
import sys

lines = sys.stdin.readlines()

res = ''
cnt = 0
for n, c in enumerate(lines[0]):
  if n == 0:
    res += c
  elif n == len(lines[0]) - 1:
    res += str(cnt)
    res += c
  else:
    cnt += 1
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=list(input().split())
a=len(s)
print('s[0]'+'a'+'s[-1]')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
s=str(input())
first=s[0]
last=s[-1]
print(first,last)

l=len(s)
print(s)
print(first,l-2,last)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf8 -*-
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding:utf-8

s = input()
size = len(s)

#print("{0}".format(s))
print("{0}{1}{2}".format(s[0], size - 2, s[1]))

Submission status: Wrong Answer

Solution code:
x = input()
y = x[1:-1]
z = x.replace(y,str(len(y)))
print(z)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

n=len(s)
print(s[0], end="")
print(n, end="")
print(s[-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
chr = input()
chr_list = list(chr)
length = len(chr_list)

a, z =  chr_list[0], chr_list[length - 1]

print(a, length, z, sep = '')

Submission status: Wrong Answer

Solution code:
string = input()
cnt = 0
le = len(string)
for i in range(1,le-1):
    cnt =cnt +1
print(string[0],cnt,string[le-1],end ='')

Submission status: Wrong Answer

Solution code:
string = input()
cnt = 0
le = len(string)
for i in range(1,le-1):
    cnt =cnt +1
print(string[0],cnt,string[le-1],end='')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
string = input()
cnt = 0
le = len(string)
for i in range(1,le-1):
    cnt =cnt +1
print(string[0],cnt,string[le-1])

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

Solution code:
s = input()

l = len(s) - 2

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())

Z = len(S) - 2

Z = str(Z)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(l)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(input())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    s = input()
    l = len(s) - 2

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC069
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3


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


main()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())

s_between_len = len(S) - 2

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

Submission status: Accepted

Solution code:
# vim: fileencoding=utf-8


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

s = list(input())

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

print(output)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

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

print(u)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

count = 0

for i in s:
    count +=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
letter = list(map(str, input()))
ans = letter[0] + str(len(letter)-2) + letter[-1]
print(ans)