Task: Program Execution
Input (English): g, M, 5475, p, V, 6571, 8913
Output (English): 7, 13, 5475, 16, 22, 6571, 8913