Task: Program Execution
Input (English): 1183 P 691 m 7839 4017 H 173 P D 8579 115 f 1657 8333 9869 c Y E 6433 9615 8891 B 993 3127 4415 S 9543 7465 1631 f 9291 6093 3021 F 2265 6211 g 6235 B
Output (English): 2, 4, 7, 9, 10, 13, 17, 18, 19, 23, 27, 31, 35, 38, 40