Task: Program Execution
Input (English): 2, 9, ['a', '5075', 'd', 'Z', '4177', '1377', 'U', 'I', '9609', 'x', '9831', '7647']
Output (English): 20238