Task: Program Execution
Input (English): 1, 8, ['9845', 'E', '9109', 'h', 'D', 'F', 'n', 'q']
Output (English): 18954