Task: Program Execution
Input (English): X, W, 1475, c, 9829, p, K, W, M, 1745, w, C, T, 57, e, b
Output (English): 13106