Task: Program Execution
Input (English): 31, G, I, 473
Output (English): 2