You are given a number n and n strings. Output these strings in the given order, but if the length of a string is greater than 10, only output the first and last characters of that string.
The first line contains a natural number n(1≤n≤1000).
The next n lines contain the strings si(1≤|si|≤1000).
Output the strings in the given order and according to the given condition.
6 abc Acb a ABCDEFGHJKIL 1234567890 11111111111
abc Acb a AL 1234567890 11
Login to be able to submit.