Task: Program Execution
Input (English): 3, 7, ['S', '7927', 'v', 'j', '4399', 'E', '5387', '5965', '6815']
Output (English): 9786