Task: Program Execution
Input (English): 6, 6, ['8977', 'M', 'p', '4889', 's', 'V', 'x']
Output (English): V