Task: Program Execution
Input (English): 9539, 7571, 4841, 2855, h, p
Output (English): 24806