Task: Program Execution
Input (English): b, Z, 1831, 5601, G, R
Output (English): 2