Task: Program Execution
Input (English): 2, 3, ['l', 'Q', 'M', '7201']
Output (English): M, Q