Task: Program Execution
Input (English): 4, 5, ['E', '9987', 'v', '3015', 'P', 'H', 'W', 'K', '1825', 'v', '1435']
Output (English): P3015