Task: Program Execution
Input (English): z, 6257, 2425, 4409, 9997, v, 8301, 927, P, 1793, Z, 4589, L, 8575
Output (English): 47273