Task: Program Execution
Input (English): 8, 14, ['x', 'H', '8115', '2797', '3875', 'n', '3329', '1055', '1713', '1763', '5015', 'H', '1251', '8623', 'r', 'z', 'b', '1071']
Output (English): 19420