Task: Program Execution
Input (English): 2, 7, ['P', 'H', '6605', '8285', 'b', 'R', '5791']
Output (English): 20681