Task: Program Execution
Input (English): g, 4783, 7699, 5807, 3111, T, g, 8977, f, i
Output (English): 2, 3, 4, 5, 8