Task: Program Execution
Input (English): 2395, J, R, w, O, n, T, Q, 8581, l, j, 9145, p, i, 2775, 6015, e, 1735, m, q, q, 3771
Output (English): 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 17, 19, 20, 21