Task: Program Execution
Input (English): j, 4961, 1417, d, M, 6377, 3505, W, M, 1425, 5391
Output (English): 23076