Task: Program Execution
Input (English): 5, 6, ['D', '8171', 'x', '4667', 'P', 'V', 'v', 'H']
Output (English): P, V