Task: Program Execution
Input (English): 4877, f, f, X, O, r, 7221, p, 6133, L, 1839, 1625, 9749, S, A, 6291, 5257, I, 1105, 8267, 2363
Output (English): 2, 3, 4, 5, 6, 8, 10, 14, 15, 18