Task: Program Execution
Input (English): 7, 10, ['x', '5009', 'v', 'K', '5551', 'Z', 'D', 'Z', '4865', '5857', 'B', 'Y', '7041', 'L', '4673', 'l']
Output (English): 10722