Task: Program Execution
Input (English): 2477, 4289, 477, 9943, a, S, A, f, W, b, 9953, 7511, 8435, h
Output (English): 2477, 4289, 477, 9943, 1, 19, 1, 6, 23, 2, 9953, 7511, 8435, 8