Task: Program Execution
Input (English): 5, 6, ['5519', 'W', '1211', 'T', '5871', 'x', 'G', 'V', '8909', 'X', '2431', '1805', '599']
Output (English): 5871x