Task: Program Execution
Input (English): 6317, 5157, f, M, s, 9763, A, N, 7221, 5911, g, 3373, 6763, D, r, 5509, f, N, 3007
Output (English): 3, 4, 5, 7, 8, 11, 14, 15, 17, 18