Task: Program Execution
Input (English): 8, 9, ['C', 'c', '221', '4759', '9947', 'B', 'N', '3807', '9169', '5285', 'X']
Output (English): 12976