Task: Program Execution
Input (English): W, 9887, G
Output (English): 2