Task: Program Execution
Input (English): Z, 4157, 5185, U, i, 1115, A, 7427, 3313, S
Output (English): 21197