Task: Program Execution
Input (English): Q, M, 8439, g, w, 8147, K, P, F, 1983, 6443, 7623, P, W, k, A, 4251, 6349, 1081, s
Output (English): 1, 2, 4, 5, 7, 8, 9, 13, 14, 15, 16, 20