Task: Program Execution
Input (English): 3, 7, ['6439', 'J', 'F', 'X', '9337', '4429', 'C', '147', '9099', '5189']
Output (English): 13766