Task: Program Execution
Input (English): S 5251 i 2401 3433 P E 1161 l p 1001 1117 T 3825 7591 2767 47 6681 3617 J 1683 2969 2137 p 1827 h c o 1857 E o 3709 k 7677 m 141 1919 a
Output (English): 1, 3, 6, 7, 9, 10, 13, 20, 24, 26, 27, 28, 30, 31, 33, 35, 38