Task: Program Execution
Input (English): 5083 359 s 6607 N 221 9665 1489 1991 4635 I Z 5113 J 3391 c 2477 J r q 8409 8439 9673 a p 8099 7069 3719 Z p 2317 3071 N B r e 2811 K 8087
Output (English): 1, 2, 4, 6, 7, 8, 9, 10, 13, 15, 17, 21, 22, 23, 26, 27, 28, 31, 32, 37, 39