Task: Program Execution
Input (English): 1211 S 5399 Z 1403 265 d 3241 n o P x 6223 7139 7615 y e c R T G y 5613 t z 1121 o 911 5185 8833 1913 6921 T 1789 h l 191 R 3975
Output (English): 1, 3, 5, 6, 8, 13, 14, 15, 23, 26, 28, 29, 30, 31, 32, 34, 37, 39