Task: Program Execution
Input (English): 4, 5, ['r', '7469', '8633', 'I', '8151', 'W', '4517']
Output (English): 8151