Task: Program Execution
Input (English): 977, 2237, z, L, 9311, U, N, 229, m, 4069, X, A, U, H, k, I, 9965, 2047, g, X, X, B
Output (English): 1, 2, 5, 8, 10, 17, 18