Task: Program Execution
Input (English): 2967 j 5735 2147 r k 2037 W 4267 T a 5571 t 721 8129 Y W 8545 6385 T P 3569 2825 5651 W o t 5543 F M S 5215 s 4313 8801 t 4823 r T
Output (English): 2, 5, 6, 8, 10, 11, 13, 16, 17, 20, 21, 25, 26, 27, 29, 30, 31, 33, 36, 38, 39