Task: Program Execution
Input (English): 9305, N, 8627, K, 1835, 101, 1145, 8183, R, G, s, p, S, m, 8711, d, 8777, 8191, A, 415, o, r, 2911
Output (English): 2, 4, 9, 10, 11, 12, 13, 14, 16, 19, 21, 22