initial commit

This commit is contained in:
ShazidMahsrafi 2023-06-07 20:15:42 +06:00
parent 04888589e1
commit c5af3b3a99

View File

@ -0,0 +1,16 @@
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,len;
string s;
cin>>t;
while(t--)
{
cin>>s;
len=s.size();
if(len>10) cout<<s[0]<<len-2<<s[len-1]<<endl;
else cout<<s<<endl;
}
}