Task: Program Execution
Input (English): 3, 4, ['7637', '8569', 'M', 'P', '1621', '8233', '5869', '4983', 'v', '531', 'M']
Output (English): PM