Task: Program Execution
Input (English): 6, 8, ['3491', 'b', '3945', '4019', 'S', 'M', 'u', 'O']
Output (English): O, u, M