Task: Program Execution
Input (English): 6007, g, 6519, 7233, T, g, T
Output (English): 19759