Task: Program Execution
Input (English): 5, 9, ['1577', 'b', 'i', '5791', '7633', '3387', '5015', '4517', 'e', 'P', 'G', 'h']
Output (English): 20552