Task: Program Execution
Input (English): 997 q P 9277 p 1399 C k z 9899 7929 8109 4183 z 2313 4777 961 T Y Y 4769 9801 4067 5445 8893
Output (English): 1, 4, 6, 10, 11, 12, 13, 15, 16, 17, 21, 22, 23, 24, 25