Task: Program Execution
Input (English): 1, 5, ['E', 'H', '8519', '7765', '5437', '8707']
Output (English): 21721