Task: Program Execution
Input (English): w, J, 5371, q, 3597, 3841, 8369, l, 5665, U, 4703, 7933, 9143
Output (English): 48622