Task: Program Execution
Input (English): 6917, b, 4747, c, P, 4913, E, s, 1871, c, 5421, 959, J, 4647
Output (English): 29475