Task: Program Execution
Input (English): 4, 5, ['6581', 'O', 'o', '3847', '5815', 'A', 'G']
Output (English): 9662