Task: Program Execution
Input (English): 7, 10, ['j', 'v', 'K', '8861', 'J', '2147', '1945', '3703', 'Y', 'X', '4539']
Output (English): 5648