Task: Program Execution
Input (English): k Y D m 8279 t 7115 9717 a b Z 5761 M P 8811 D N P 5937 X 4419 8289 329 N Q 2061 4993 2283 I 9725 N 1717
Output (English): 1, 2, 3, 4, 6, 9, 10, 11, 13, 14, 16, 17, 18, 20, 24, 25, 29, 31