Task: Program Execution
Input (English): 9647, G, p
Output (English): 2, 3