Task: Program Execution
Input (English): D, 5295, k, 5001, 7685, K, 4833, T, 3235
Output (English): 4, 5295, 11, 5001, 7685, 11, 4833, 20, 3235