Task: Program Execution
Input (English): 6749, N, q, 6977, 3857, a, h, 7131, T, z, 8559, Z, 5365, J, 8927, 1045, 7833, 147, q, 495, 4453
Output (English): 1, 4, 5, 8, 11, 13, 15, 16, 17, 18, 20, 21