Task: Program Execution
Input (English): 9881, R, A, 6219, N, M, v, B, 8361, 7743, T, J, 5107, t, g, Y, Y, 5811, 837, 2879, 7335
Output (English): 1, 4, 9, 10, 13, 18, 19, 20, 21