Task: Program Execution
Input (English): k, 7993, j, 1843, a, 4283, K, 997, j, j, C, 665
Output (English): 15781