Task: Program Execution
Input (English): 5983 5 9403 Z 2109 3829 m 3017 1229 9097 s 7785 3721 y j 8279 4777 6949 8475 U 3125 5581 Z N g 1235 443 E 5537 A 6903
Output (English): 1, 2, 3, 5, 6, 8, 9, 10, 12, 13, 16, 17, 18, 19, 21, 22, 26, 27, 29, 31