Task: Program Execution
Input (English): 4, 12, ['P', 'M', '2839', '501', '7887', 'c', '155', '2231', 'T', 'm', '1295', 'f', '987']
Output (English): 12069