Task: Program Execution
Input (English): 5, 10, ['8981', '4281', 'A', '9119', '8407', 'e', 'x', 'S', '1031', '9589', '1331', 'J', '849', 'B', 'j', '7115']
Output (English): 8407exS10319589