Task: Program Execution
Input (English): 4185, 4585, 5301, 1139, 5647, H
Output (English): 20857