Task: Program Execution
Input (English): 4, 4, ['v', '4781', 'W', '4119']
Output (English): 4119