Task: Program Execution
Input (English): 1, 4, ['359', 'Q', '7083', '5055', '341', 'P', '8767', '9243']
Output (English): 12497