Task: Program Execution
Input (English): g, 2091, R, 5749, Z, 1671, 8857, 5507, 4951, e, 115, 2841
Output (English): 4