Task: Program Execution
Input (English): 3, 7, ['3981', 'r', '437', 'Z', '7975', 'h', 'I', 'x', 'T', '5585', '939']
Output (English): 8412