Task: Program Execution
Input (English): P, P, K, 5909, d, 9173, a, 477, W, 3391, 8545, 8209, R, b, 9465, p
Output (English): 16, 16, 11, 5909, 4, 9173, 1, 477, 23, 3391, 8545, 8209, 18, 2, 9465, 16