Task: Program Execution
Input (English): n, 2977, I, 3291, 3213, 6237, S, C, 7385, C, R, f, K, 8931, h, 4791, 6881, 8557, 385, 5463, e
Output (English): 14, 2977, 9, 3291, 3213, 6237, 19, 3, 7385, 3, 18, 6, 11, 8931, 8, 4791, 6881, 8557, 385, 5463, 5