Task: Program Execution
Input (English): 1, 1, ['8743', 'V', '7567', '4753', '3931', '2057', '3809']
Output (English): 3478