Task: Program Execution
Input (English): 1505 s Z 7095 4547 f Z 9787 9389 q o y 8459 C 2331 A 6727 q 5013 Z 7283 397 n 9613 7489 8025 4181 7321 a K S 8573
Output (English): 2, 3, 6, 7, 10, 11, 12, 14, 16, 18, 20, 23, 29, 30, 31