Task: Program Execution
Input (English): 2973, a, 6251, s, 5009, m, G
Output (English): 2973, 1, 6251, 19, 5009, 13, 7