Task: Program Execution
Input (English): 3871, G
Output (English): 1