Task: Program Execution
Input (English): 1883, 8749, z, g, 5113, x, q
Output (English): 15745