Task: Program Execution
Input (English): 3, 3, ['x', 'v', 'p', '4337', '635', '8927', 'B']
Output (English): p