Task: Program Execution
Input (English): 983, W, S, 4151, 5901, 6653, T, V, k, l, 6329, R, g, 3207, x, Z, L, b, S, 6807, 1147
Output (English): 1, 4, 5, 6, 11, 14, 20, 21