Task: Program Execution
Input (English): w, 4181, g, j, 1823, q, i, 709
Output (English): 6713