Task: Program Execution
Input (English): 2, 12, ['8853', 'a', 'T', '149', '477', 'l', '8905', 'L', 'a', '1613', '3965', '7159', '1241', '7393', '3859', '1329', '5369']
Output (English): 22268