Task: Program Execution
Input (English): M 873 J 1937 u 197 D s P 5089 U K d U 5993 x 6165 1809 4073 M L 4513 8105 7483 729 1699 W y e 3653 7573 807 o 8899
Output (English): 2, 4, 6, 10, 15, 17, 18, 19, 22, 23, 24, 25, 26, 30, 31, 32, 34