Task: Program Execution
Input (English): g, d, 6845, n, Q, b, 3781, 7673, 153, 8717, g, 4145, K, M, r, 6231, 397, V
Output (English): 3, 7, 8, 9, 10, 12, 16, 17