Task: Program Execution
Input (English): 3, 5, ['S', 'v', 'Y', '9487', 'K', '5879']
Output (English): 9487