Task: Program Execution
Input (English): L, E, I, 4977, K, 2629, 5719, 8729, R, z
Output (English): 1, 2, 3, 5, 9, 10