Task: Program Execution
Input (English): A, p, 5133, G, 1171, d, y, O, 1665, O, 493, K, H, M, X, 767, 7981, f, N, h, 9097, 105
Output (English): 1, 2, 4, 6, 7, 8, 10, 12, 13, 14, 15, 18, 19, 20