Task: Program Execution
Input (English): G, z, W, J, H, 6227, 209, 3847, Q, D, 3027, 2495, a, U, X
Output (English): 15805