Task: Program Execution
Input (English): 2, 8, ['417', '3979', '2149', 'Y', 'O', '5091', '7083', 'K', '6185', '8123', 'b', '6401', 'h', '415', 's', 'K', 'C', 'Z']
Output (English): 18302