Task: Program Execution
Input (English): 5, 7, ['9469', '2015', '2937', 'A', '1587', 'n', '7493', 'A', 'o', '3491', '4329', '4461', 'S']
Output (English): 9080