Task: Program Execution
Input (English): k, 3945, c, 5765, 1843
Output (English): 11553