Task: Program Execution
Input (English): 2139, D, 7313, W
Output (English): 2139, 4, 7313, 23