Task: Program Execution
Input (English): 1903, Z, 3515, z, P, 475, 3025, 3819, G, v, j, 9619, 4965, g, 4611
Output (English): 31932