Task: Program Execution
Input (English): 7, 9, ['A', '4409', 'B', '7851', '4681', '8427', '8815', 'g', '179', 'X']
Output (English): 8994