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: Accepted

Solution code:



def main():
    s = input()

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = input()

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

main()

Submission status: Accepted

Solution code:
line = input().strip()

if len(line) > 2:
    n = len(line[1:-1])
    print(line[0] + str(n) + line[-1])
else:
    print(line)

Submission status: Accepted

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

Submission status: Accepted

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

b()

Submission status: Accepted

Solution code:
s = input()
l = len(s)

head = s[0]
tail = s[len(s)-1]
an = l - 2
print(head + str(an) + tail)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
#!usr/bim/python
#! -*- coding: utf-8 -*-

s = raw_input()

n = len(s)

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

print ans

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# i18n
s = input()

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

Submission status: Accepted

Solution code:
# encoding:utf-8
 
def main():
	s = input()
	out = s[0] + str(len(s) - 2) + s[-1]
	print(out)
		
if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import re
import math
import collections
import itertools
import functools

DEBUG = True
DEBUG = False

def dbg(*args):
    if DEBUG:
        print("DBG: ", file=sys.stderr, end="")
        print(*args, file=sys.stderr)



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

if __name__ == "__main__": main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(s[0]+s.count(s-2)+s[-1])

Submission status: Runtime Error

Solution code:
s = input()
print(s[0]+count(s-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:
a = input()
print(s[0] + str(len(s) - 2) + s[-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
print(s[0]+(len(s)-1)+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 sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

s = rr()
print(s[0] + str(len(s-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]+len(S[1:-1])+S[-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()
t = len(s)
print(s[0] + t + s[- 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:
s = input()
N = len(s)
print(s[0] + len(N - 2) + s[N - 1])

Submission status: Runtime Error

Solution code:
a = list(input())
n = len(a)-2
print(a[0],n,a[-1],sep=("")

Submission status: Runtime Error

Solution code:
import sys 

line = sys.stdin
line = line.strip()
start = line[0]
end = line[-1]
print('%s%d%s'%(start, len(line) - 2, end))

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()
print("{}{}{}".format(s[0],len(s)-2,s[-1]))

Submission status: Runtime Error

Solution code:
s = intput()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,*b,c = input().split()
print(a+len(b)+c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, *b, c = input()
print(f'{a}{len(b)}{c}')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
print(a[0]+str(len(s)-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] +　str(len(s) -2) + s[-1])

Submission status: Runtime Error

Solution code:
s = input()
m = str(len(s) -2)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
ss=len(s[1:len(s)-1])
sss=str(ss)
 print(s[0]+sss+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]+int(len(s)-2)+s[-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

    #文字列を受け取る
    s = input()

    #replaceで文字列を置き換え
    print(s.replace('2017', '2018', 1))
    #置き換え回数も指定できる。今回は必要なさそうだけど

Submission status: Runtime Error

Solution code:
def main():
s = input()

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

if __name__ == '__main__':
    main()

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[1,len(s)]) + s[-1])

Submission status: Runtime Error

Solution code:
voca = input()

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

print(output)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = int()
print(S[0]+ len(S) + S[-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], end="")
print(s.count(n) - 2, end="")
print(s[s.count(n) - 1])

Submission status: Runtime Error

Solution code:
s = input()
print(s[0], end="")
print(s.size() - 2, end="")
print(s[s.size() - 1])

Submission status: Runtime Error

Solution code:
print(S[0] + (S.length()-2) + S[-1])

Submission status: Runtime Error

Solution code:
import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    al=[chr(ord('A')+i) for i in range(26)]
    h,w=map(int, input().split())
    l=[list(input().split()) for i in range(h)]
    for j in range(w):
        for k in range(h):
            if l[k][j]=='snuke':
                print(al[j]+str(k+1))
resolve()

Submission status: Runtime Error

Solution code:
str=input()

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

print(a+str(c)+b)

Submission status: Runtime Error

Solution code:
str=input()

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

print(a+c+b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# スペース区切りの整数の入力
b, c = map(int, input().split())
# 文字列の入力
s = input()
# 出力
print("{} {}".format(a+b+c, s))

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()
l=len(s)-2
t=f'{s[0]}{l}{s[l+1]}'
print(t)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
length=len(s)-2
return s[0]+length+s[-1]

Submission status: Runtime Error

Solution code:
s = input()

char_number = len(s)

start = s[0]
end   = s[-0]

answer = start + str(char_number - 2)in + end
print(answer)

Submission status: Runtime Error

Solution code:
s = input()

char_number = len(s)

start = s[0]
end   = s[-0]

answer = start + char_number + end
print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main(str):
  print("{}{}{}".format(str[0],str(len(str)-2),str[len(str)-1])

Submission status: Runtime Error

Solution code:
s = input()
# 頭とお尻の文字数を引く
n = len(s) - 2
# 頭とお尻をくっつくて出力
print(f'{s[0]}{n}{s[-1]}')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
str = input()
s_head = str[0]
s_tail = str[1]
s_middle = len(str) -2
ans = s_head + str(s_middle) + s_tail

Submission status: Runtime Error

Solution code:
s = input()
c = 0
for i in s:
  c += 1
print(s[0] + (c-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:
s = input()
print(s[0] + s.length-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:
s = list(input())
ans = s[0] + len(s)-2 + s[-1]
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=str(input())
l=str(len(s))
list=[s[0],l,s[l-1]]
print(''.join(list))

Submission status: Runtime Error

Solution code:
x=str(input())
l=str(len(s))
list=[s[0],l,s[l-1]]
print(''.join(list))

Submission status: Runtime Error

Solution code:
x=str(input())
l=len(s)
list=[s[0],l,s[l-1]]
print(''.join(list))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
h,*b,t = input()
print(h+str(len(b))+t

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,*b,c = input()
print(a+string(b)+c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

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

print(a+b+c)

Submission status: Runtime Error

Solution code:
s = input()

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

print(a+b+c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
"""
author : halo2halo
date : 29, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = readline().decode('utf8')


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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()
num = 0
for s in S:
  if s == S[0]:
    print(s)
  elif s == S[len(S)-1]:
    print(s)
  elif s == S[len(S)-2]:
    print num
  else:
    num += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=list(input())
c=[]
g=0
c=a.reverse()

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

Submission status: Runtime Error

Solution code:
a=list(input())
c=reverse(a)
b=a.index(a[0])
d=c.index(c[0])
g=b-d
g-=1
print(a[0]+str(g)+c[0])

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
    cin >> s;
    cout << s[0] << s.size() - 2 << s[s.size() - 1] << endl;
    return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=list(input())
print(s[0]+len(s-2)+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:
s = input()
print(s[0]+s.count()+s[-1])

Submission status: Runtime Error

Solution code:
s = len(input())-2
print(f'i{s}n')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  l=s.size()-2;
  cout>>s[0]>>l>>s[s.size()-1];
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
s = a.length
print(a[0]+int(s)+a[-1])

Submission status: Runtime Error

Solution code:
s=list(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S=str(input())
size=len(S)

print(S[0]+int(int(size)-2)+S[-1])

Submission status: Runtime Error

Solution code:
S=str(input())
size=len(S)

print(S[0]+(int(size)-2)+S[-1])

Submission status: Runtime Error

Solution code:
S=str(input())

print(S[0:]+(S.count(S)-2)+S[-1:])

Submission status: Runtime Error

Solution code:
S=str(input())

print(S[0]+(S.count(S)-2)+S[-1])

Submission status: Runtime Error

Solution code:
S=str(input())

print(S[0]+(S.count(S)-2)+S[-0])

Submission status: Runtime Error

Solution code:
n,k,x,y=[int(input()) for i in range(4)]
print(k*x+y*(n-k))

Submission status: Runtime Error

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

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()
print("s[1]" + (len(s) -2) + "s[-1]")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input
count = a.count()
print(a[0]+str(count)+a[count-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)s=input()
out = s[0] + str(len(s)-2) + s[-1]
print(out)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include<iostream>
using namespace std;

main(){
	string s ;
  	cin >> s; 
  	cout << s.front()<<to_string(s.length() -2 )<<s.back()<< endl;
  	return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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()
midLen = len(s) - 2

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = sorted(list(map(int,input().split())))
print(int(n[0]*n[1]/2))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()
cnt = 0
S = list(S)
S_t = S[0]
S.pop(0)
S_b = S[-1]
S.pop(-1)
for i in range(S):
    cnt += 1

print(S_t + cnt + S_b)

Submission status: Runtime Error

Solution code:
s = input()
print(s[0] + len(s[1:len(s) - 1]) + s[len(s) - 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]+str(len(s)+s[-1]))

Submission status: Runtime Error

Solution code:
s = list(input())
f = s[0]
e = s[-1]
s.pop(0).pop(-1)
l = len(s)
print("".join([f, str(l), e]))

Submission status: Runtime Error

Solution code:
a,*b,c=list(input().split())
print(a+str(len(b))+c)

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] + str(len(s) - 2) + s[-1]))

Submission status: Runtime Error

Solution code:
s=input()

x=s[0],len(s)-2,s[-1]
print(x.gsub(" ",""))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    s = input().strip()
    print(s[0]+ str(lne(s)-2)+s[-1])

solve()

Submission status: Runtime Error

Solution code:
#coding:UTF-8
s = input()
print(s[0] + (len(s)-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()
S0 = S[0]
S1 = len(S) - 2
S2 = S[-1]
print(S0+S1+S2)

Submission status: Runtime Error

Solution code:
s = str(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
i=0
while 1:
  if 2**i>n:break
  i+=1
print(2**(i-1))

Submission status: Runtime Error

Solution code:
import math
n=int(input());print(round(2**(math.log(n,2)//1)))

Submission status: Runtime Error

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007

#A
def A():
    n, m = LI()
    print((n-1)*(m-1))
    return

#B
def B():
    s = S()
    print(s[0]+str(len(s)-2)+s[-1])
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
print(a+b if a+b<10 else "error")

Submission status: Runtime Error

Solution code:
from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
import itertools

def j(q):
    if q==1: print("Yes")
    else:print("No")
    exit(0)


def ct(x,y):
    if (x>y):print("")
    elif (x<y): print("")
    else: print("")

def ip():
    return int(input())

#n = ip()                              #入力整数1つ
#h,w= (int(i) for i in input().split())      #入力整数横2つ
#n,x,y = (int(i) for i in input().split())    #入力整数横3つ
#n,m,x,y= (int(i) for i in input().split())  #入力整数横4つ
#a = [int(i) for i in input().split()]        #入力整数配列
a = input()                                  #入力文字列
#a = input().split()                          #入力文字配列
#n = ip()                      #入力セット(整数改行あり)(1/2)
#a=[ip() for i in range(n)]    #入力セット(整数改行あり)(2/2)

#jの変数はしようできないので注意
#全足しにsum変数使用はsum関数使用できないので注意
print(a[0],end=“”)
print(len(a)-2,end=“”)
print(a[len(a)-1])

Submission status: Runtime Error

Solution code:
a,*List,b=input()
print(a+len(List)+b)

Submission status: Runtime Error

Solution code:
n = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
length = len(s)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
s_0=s.append(0)
s_n=s.append(len(s))
print(s_0+str(len(s))+s_n)