Task: Program Execution
Input (English): A, H, x, 5125, j, w, q, F, 887, 7861, W, 3825
Output (English): 17698