Task: Program Execution
Input (English): 6837, Z, 5511, G, M, 1857, H, 6651, w, J, R, G, B
Output (English): 6837, 26, 5511, 7, 13, 1857, 8, 6651, 23, 10, 18, 7, 2