Task: Program Execution
Input (English): 3, 2, ['T', 'M', '5325', 'C', 'x', 'm', '3567', 'O', 'V', '8869', '8575', 'i', '7857', '9443', '3027']
Output (English): 5325, x, 3567, V, 8575, 7857, 3027