Task: Program Execution
Input (English): 3491, J, 3567, S, s, 5697, 4817, 6117, B, I, 6247, 5671, z, g, j, h, 5373
Output (English): 3491, 10, 3567, 19, 19, 5697, 4817, 6117, 2, 9, 6247, 5671, 26, 7, 10, 8, 5373