Task: Program Execution
Input (English): S G 2397 4009 J 7077 t W 623 x b t 8653 8647 8937 M E 6447 6969 I 6539 l r i w 5271 7959 5365 7755 s 5739 w 6795 6891 o n 231 G H 2403
Output (English): 1, 2, 5, 7, 8, 10, 11, 12, 16, 17, 20, 22, 23, 24, 25, 30, 32, 35, 36, 38, 39