Task: Program Execution
Input (English): W, 4659, 403, a, 1149, 8783, m, T, Q, n, 5231, 2759, 7119, 9569, i
Output (English): 39672