Task: Program Execution
Input (English): 1737 8765 2919 5901 P v 4039 f X 2071 M 1039 8255 d 5593 J p X 5859 l 9515 295 K 5875 7037 R S 9969 r 3861 3711 2019 a 6129 L 4763 2089 1427 2521
Output (English): 1, 2, 3, 4, 7, 10, 12, 13, 15, 19, 21, 22, 24, 25, 28, 30, 31, 32, 34, 36, 37, 38, 39