Task: Program Execution
Input (English): 2, ['1457', 'Z', 'M', 'X', '5589', '611', '1165', 'I', 'd']
Output (English): M, X, 5589, 611, 1165, I, d