Task: Program Execution
Input (English): q 8963 m o 8921 G 5447 943 e 3487 1585 U 3047 p 61 e 5807 9579 8965 u S 8023 u o 5447
Output (English): 1, 3, 4, 6, 9, 12, 14, 16, 20, 21, 23, 24