Task: Program Execution
Input (English): z, 3199, r, 849, C, v, 1931, M, Q, 4531, 579, x, 8997, 4663
Output (English): 24749