Task: Program Execution
Input (English): q, 6245, K, B, M, g, 8973, S, 9607, 8881, t, 2909, 3967, R, J, 1293, 4949
Output (English): 2, 7, 9, 10, 12, 13, 16, 17