import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for(int i =0;i<=n;i++)
{
String x=sc.nextLine();
if(x.length()>10)
{
char[] ch = x.toCharArray();
System.out.print(ch[0]);System.out.print(x.length()-2);System.out.print(ch[x.length()-1]);
System.out.println();
}
else
System.out.println(x);
}
}
}
71A - Way Too Long Words
最新推荐文章于 2020-01-20 18:36:27 发布