Task: Program Execution
Input (English): 47, G, M, 2721, u, 3301, p, 1407, 4261, Z, 6921, g, 1685, 4497, 7189
Output (English): 47, 7, 13, 2721, 21, 3301, 16, 1407, 4261, 26, 6921, 7, 1685, 4497, 7189