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

[{"code": "a = input()\nprint(f\"{a[0]}{len(a[1:-1])}{a[-1]}\")", "passed": true, "time": 0.82, "memory": 14236.0, "status": "done"}, {"code": "s = input()\nans = s[0] + str(len(s)-2) + s[-1]\nprint(ans)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s)-2) + s[-1])", "passed": true, "time": 0.22, "memory": 14092.0, "status": "done"}, {"code": "s = input()\nprint((s[0]+str(len(s)-2)+s[len(s)-1]))\n", "passed": true, "time": 0.8, "memory": 14328.0, "status": "done"}, {"code": "import sys\n\n\ndef main():\n    s = input()\n    N = len(s)\n    ans = s[0] + str(N - 2) + s[-1]\n    print(ans)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.22, "memory": 14320.0, "status": "done"}, {"code": "s = list(input())\na = ''\nb = s.pop(0)\nc = s.pop()\na += b\na += str(len(s))\na += c\nprint(a)", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "s = input()\ns1, s2, s3 = s[0], s[1:-1], s[-1]\n\nans = s1 + str(len(s2)) + s3\nprint(ans)", "passed": true, "time": 0.81, "memory": 14224.0, "status": "done"}, {"code": "s = [i for i in input()]\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.24, "memory": 14080.0, "status": "done"}, {"code": "s=input()\nt=len(s)\nans=s[0]+str(t-2)+s[-1]\nprint(ans)", "passed": true, "time": 1.52, "memory": 14188.0, "status": "done"}, {"code": "n = input()\nn = list(n)\na = n.pop(0)\nb = n.pop()\nc = len(n)\nprint(a+str(c)+b)", "passed": true, "time": 0.23, "memory": 14048.0, "status": "done"}, {"code": "s = input()\n\nprint(s[0]+str(len(s)-2)+s[len(s)-1])", "passed": true, "time": 0.22, "memory": 14128.0, "status": "done"}, {"code": "S = input()\nMid = len(S)-2\nprint(S[0]+str(Mid)+S[-1])", "passed": true, "time": 0.22, "memory": 14296.0, "status": "done"}, {"code": "string = input()\nprint((string[0] + str(len(string) - 2) + string[-1]))\n", "passed": true, "time": 0.21, "memory": 14308.0, "status": "done"}, {"code": "s = input()\nprint(s[0]+str(len(s[1:-1]))+s[-1])", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "s = str(input())\nans = s[0] + str(len(s)-2) + s[-1]\nprint(ans)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\n\ndef main():\n    s = input()\n    print((s[0] + str(len(s) - 2) + s[-1]))\n\n\nmain()\n", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s)-2) + s[-1])", "passed": true, "time": 0.22, "memory": 14296.0, "status": "done"}, {"code": "S = input()\nprint((S[0]+str(len(S)-2)+S[-1]))\n", "passed": true, "time": 0.13, "memory": 14180.0, "status": "done"}, {"code": "S = input()\n\nprint(S[0]+str(len(S)-2)+S[-1])", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "s = input()\n\nprint(s[0], len(s) - 2, s[-1], sep='')", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "s = str(input())\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "S = input()\nprint(S[0]+str(len(S)-2)+S[-1])", "passed": true, "time": 0.22, "memory": 14096.0, "status": "done"}, {"code": "s=input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "s = input()\nn = len(s)-2\nprint((s[0]+str(n)+s[-1]))\n", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "def answer(s: str) -> str:\n    return f'{s[0]}{len(s) - 2}{s[-1]}'\n\ndef main():\n    s = input()\n    print(answer(s))\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "s=input()\nprint((s[0]+str(len(s)-2)+s[len(s)-1]))\n", "passed": true, "time": 1.12, "memory": 14260.0, "status": "done"}, {"code": "s = input()\nres = s[0] + str(len(s) - 2) + s[-1]\nprint(res)\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "s = input()\nprint(f\"{s[0]}{len(s)-2}{s[-1]}\")", "passed": true, "time": 0.16, "memory": 14200.0, "status": "done"}, {"code": "s=str(input())\nn=str(len(s)-2)\np=s[0]+n+s[len(s)-1]\nprint(p)", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "s = input()\nl = len(s)\nprint((s[0] + str(l-2) + s[-1]))\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "s=input()\n\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.3, "memory": 14088.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\ndef main():\n    s = input()\n    print((s[0]+str(len(s)-2)+s[-1]))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "#ABC069\ns = input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.22, "memory": 14096.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s[1:-1])) + s[-1])", "passed": true, "time": 0.23, "memory": 14280.0, "status": "done"}, {"code": "a = list(input())\n\nprint(a[0] + str(len(a) - 2) + a[len(a) - 1])", "passed": true, "time": 0.29, "memory": 14240.0, "status": "done"}, {"code": "s = input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "s=input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "s = input()\nn = str(len(s)-2)\nprint((s[0]+n+s[-1]))\n", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n\nS = input()\n\na = len(S)\n\nprint((S[0]+str(a-2)+S[-1]))\n", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "s = str(input())\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "S=input()\nprint((S[0]+str(len(S)-2)+S[-1]))\n", "passed": true, "time": 0.15, "memory": 14080.0, "status": "done"}, {"code": "s = input()\ns_len = len(s)\nhead, tail = s[0], s[s_len - 1]\nprint((head + str(s_len - 2) + tail))\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "s=input()\na=len(s)-2\nprint(s[0]+str(a)+s[len(s)-1])", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "s = list(input())\nprint(s[0], len(s)-2, s[len(s)-1], sep='')\n", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "s = input()\n\n\nprint(s[0] + str(len(s)-2) + s[len(s) -1])", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "s=input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "s = input()\nsize = len(s)\nprint((s[0] + str(size - 2) + s[size - 1]))\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "s = input()\n\nl = len(s) - 2\n\nprint(s[0] + str(l) + s[-1])", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "a,*b,c = input()\nprint(a,len(b),c,sep=\"\")\n", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "s=input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "s=input()\nprint(f\"{s[0]}{len(s)-2}{s[-1]}\")", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "s = input()\nprint(s[0]+str(len(s)-2)+s[len(s)-1])", "passed": true, "time": 0.21, "memory": 14224.0, "status": "done"}, {"code": "s = input()\ns_c = len(s)-2\nprint(\uff53[0] + str(s_c) +s[-1])", "passed": true, "time": 0.15, "memory": 14548.0, "status": "done"}, {"code": "s=list(input())\ny=str(len(s)-2)\nprint(s[0]+y+s[-1])", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "S = input()\nprefix = S[0]\nsufix = S[-1]\ncontent = str(len(S[1:-1]))\nprint(prefix + content + sufix)", "passed": true, "time": 0.2, "memory": 14284.0, "status": "done"}, {"code": "s=input()\n\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "S = input()\nprint((S[0] + str(len(S) - 2) + S[-1]))\n", "passed": true, "time": 0.15, "memory": 14320.0, "status": "done"}, {"code": "s = input()\nprint(f'{s[0]}{len(s[1:-1])}{s[-1]}')", "passed": true, "time": 0.18, "memory": 14320.0, "status": "done"}, {"code": "# ABC069\ns = input()\n\nprint((s[0] + str(len(s[0:-2])) + s[-1]))\n", "passed": true, "time": 0.15, "memory": 14324.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s)-2) + s[-1])", "passed": true, "time": 0.19, "memory": 14232.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.24, "memory": 14088.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.16, "memory": 14308.0, "status": "done"}, {"code": "S = str(input())\n\ns_between_len = len(S) - 2\n\na = S[:1] + str(s_between_len) + S[-1]\nprint(a)", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "a=input()\nprint(f\"{a[0]}{len(a)-2}{a[len(a)-1]}\")", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "s = input()\nt = str(len(s) - 2)\nprint(s[0] + t + s[-1])", "passed": true, "time": 0.16, "memory": 14092.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.18, "memory": 14060.0, "status": "done"}, {"code": "s = input()\n\nprint(s[0]+ str(len(s) - 2) + s[-1])", "passed": true, "time": 0.16, "memory": 14176.0, "status": "done"}, {"code": "s = input()\n\nl = s[0] + str(len(s)-2) + s[-1]\n\nprint(l)", "passed": true, "time": 0.16, "memory": 14252.0, "status": "done"}, {"code": "s=input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.16, "memory": 14196.0, "status": "done"}, {"code": "s = input()\ns = s[0] + str(len(s) - 2) + s[-1]\nprint(s)\n", "passed": true, "time": 0.16, "memory": 14284.0, "status": "done"}, {"code": "s=input()\n\nnew_s=s[0]+str(len(s[1:-1]))+s[-1]\nprint(new_s)", "passed": true, "time": 0.16, "memory": 14064.0, "status": "done"}, {"code": "s = str(input())\n\nprint((s[0] + str(len(s) - 2) + s[-1]))\n", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "s=input()\nlen_a=str(len(s)-2)\nprint((s[0]+len_a+s[-1]))\n", "passed": true, "time": 0.28, "memory": 14240.0, "status": "done"}, {"code": "s = input()\nl = len(s)\nprint(f'{s[0]}{l-2}{s[l-1]}')", "passed": true, "time": 0.23, "memory": 14120.0, "status": "done"}, {"code": "a = input()\nprint(a[0] + str(len(a) - 2) + a[-1])", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "s = input()\nprint(s[0] +str(len(s[1:-1]))+ s[-1])", "passed": true, "time": 0.22, "memory": 14324.0, "status": "done"}, {"code": "S = input()\nans = S[0] + str(len(S) - 2) + S[-1]\nprint(ans)", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "s=input()\nN=len(s)\nprint(s[0]+str(N-2)+s[N-1])", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "s = input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.14, "memory": 14032.0, "status": "done"}, {"code": "s = input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "s = input()\nn = len(s[1:-1])\nprint(s[0]+str(n)+s[-1])", "passed": true, "time": 0.14, "memory": 14036.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s)-2) + s[-1])", "passed": true, "time": 0.15, "memory": 14304.0, "status": "done"}, {"code": "s = str(input())\nans = s[0] + str(len(s)-2) + s[-1]\nprint(ans)", "passed": true, "time": 0.14, "memory": 14024.0, "status": "done"}, {"code": "s = input()\n\nprint(s[0] + str(len(s)-2) + s[-1])", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "s=input()\nprint(s[0]+str(len(s)-2)+s[len(s)-1])", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "s=input()\nS=s[0]+str(len(s)-2)+s[-1]\nprint(S)", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "s=input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.24, "memory": 14200.0, "status": "done"}, {"code": "s = input()\nprint(s[0]+str(len(s)-2)+s[-1])", "passed": true, "time": 0.24, "memory": 14284.0, "status": "done"}, {"code": "def main():\n    s = input()\n    print(f'{s[0]}{len(s) - 2}{s[-1]}')\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "s = input()\nprint((s[0] + str(len(s)-2) + s[-1]))\n", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "s = input()\nprint('{}{}{}'.format(s[0],len(s)-2,s[-1]))", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "s = input()\nprint((s[0]+str(len(s)-2)+s[-1]))\n", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "s = input()\nn = str(len(s)-2)\nprint(s[0]+n+s[-1])", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n\ns = list(input())\n\nnum = len(s)\noutput = s[0] + str(num-2) + s[num-1]\n\nprint(output)", "passed": true, "time": 0.14, "memory": 14020.0, "status": "done"}, {"code": "# \u6587\u5b57\u5217\u306e\u5165\u529b\ns = input()\nprint(s[0]+str(len(s[1:-1]))+s[-1])", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "s = input()\nprint(\"{}{}{}\".format(s[0], len(s)-2, s[-1]))", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "a=input()\nprint(a[0]+str(int(len(a)-2))+a[-1])", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "s = input()\nprint(s[0] + str(len(s) - 2) + s[-1])", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}]