using System; class Program { static void Main(string[] args) { string stringNumber = Console.ReadLine(); int intNumber = System.Convert.ToInt32(stringNumber); string[] result = new string[intNumber]; for (int i = 0; i < intNumber; i++) { string testCase = Console.ReadLine(); char[] array = testCase.ToCharArray(); result[i] = array[0].ToString() + array[array.Length - 1].ToString(); } foreach (s..