Task: Program Execution
Input (English): 1571 P 7095 5459 m 6075 W n 1813 6991 6133 7717 3107 1275 8815 I 5081 5361 I 6715 5003 7231 4063 K 1143 2049 Q 7295 3957 171 z m
Output (English): 1, 3, 4, 6, 9, 10, 11, 12, 13, 14, 15, 17, 18, 20, 21, 22, 23, 25, 26, 28, 29, 30