Task: Program Execution
Input (English): 2, 8, ['r', 'H', 'K', 'K', '7307', 'i', '9381', '4175']
Output (English): 20863