Task: Program Execution
Input (English): 1959, p, P, G, 9023, 1969, 7721, f, 5917, x, n, q, 3461, D, D, 593, 4247, R, c, 7489, 639, V, 7847
Output (English): 1, 5, 6, 7, 9, 13, 16, 17, 20, 21, 23