Task: Program Execution
Input (English): 3, 12, ['M', '6011', '9743', '8033', '9211', '1623', '7245', 'z', 'N', '3399', '935', 'P']
Output (English): P, 935, 3399, N, z, 7245, 1623, 9211, 8033, 9743