Task: Program Execution
Input (English): w, Y, 5383, 8951, U, d, R, Z, 965, v, 5747, c, w
Output (English): 21046