Task: Program Execution
Input (English): C 3771 K o 319 q 5343 Z 1577 2209 D o 6495 B 5839 4393 7781 Q 1561 6727 d 5203 79 x r T 6839 3115 5207 6123 Q 603
Output (English): 1, 3, 4, 6, 8, 11, 12, 14, 18, 21, 24, 25, 26, 31