Task: Program Execution
Input (English): 2, 8, ['g', '2977', '7633', 't', 'C', '4467', 'w', 'v']
Output (English): 15077