Task: Program Execution
Input (English): 3051, Z, q, u, x, 2747, e, B, 4225, Q, R, 4629, F
Output (English): 14652