Task: Program Execution
Input (English): A, W, 4439, 4345, j, 8247, X, s, 6717, c, 1319, Q, m, 5931, 425, 6903, 1141, U
Output (English): 39467