Task: Program Execution
Input (English): 2, 15, ['3813', 'H', '5655', '4849', 'I', '797', '5029', '3127', 'p', 'P', 'J', 'D', '5453', '5601', 'w']
Output (English): 30511