Task: Program Execution
Input (English): G, 6365, 9897, S, 5159, T, 1437, 3715, 9325, T, 9653, 3115, Q, 9061, i, 465
Output (English): 7, 6365, 9897, 19, 5159, 20, 1437, 3715, 9325, 20, 9653, 3115, 17, 9061, 9, 465