Task: Program Execution
Input (English): 4, 9, ['Y', '4587', 'N', '1351', 'X', '5483', '2105', 'Z', '4579', 'B', 'b', 'I', 'I', '1519']
Output (English): 13518