Task: Program Execution
Input (English): 5, 7, ['X', '965', 'l', 'v', 'f', 'h', '3671', 'C', '7275']
Output (English): 3671