Task: Program Execution
Input (English): 2963, U, J, 395, 8623, 6297, S, 7127, 7045, M, 9277, 7953, A, n, 2569, 4893, H, Q, 3693, 2421
Output (English): 1, 4, 5, 6, 8, 9, 11, 12, 15, 16, 19, 20