Task: Program Execution
Input (English): 3, 8, ['5029', 'V', 'h', 'Y', '2241', '749', 'I', '5987', 'O', 'd', 'u', 'k']
Output (English): 8977