Task: Program Execution
Input (English): w, A, z, 4047, K, z, 8835, 6909, 9845, 31, 6813, 5579, S, x, 9789, S, Q, G, d, 3447, 2157, R
Output (English): 1, 2, 3, 5, 6, 13, 14, 16, 17, 18, 19, 22