Task: Program Execution
Input (English): 1, 4, ['7515', '8683', '5937', '8435', 'P', '4299', '2663', 'o', 'S', '9805', 'p', '5031', '7889', '8865']
Output (English): 30570