Task: Program Execution
Input (English): 1, 1, ['8119', 'g', 'm', 'K', '9503', '6149', 'Y', '6987', 'd']
Output (English): 9118