Task: Program Execution
Input (English): 3, 7, ['1811', 'Z', 'C', 'x', '6171', 'W', 'N', 'L', 'h', '4497']
Output (English): 6171