Task: Program Execution
Input (English): 5705 u 1039 P v 2643 s 6241 9737 1493 n R 7187 W f A 9171 k 1957 7977 S 7515 n d 65 3499 T 3997 X 3709 1485 961 8149 6691 k
Output (English): 2, 4, 5, 7, 11, 12, 14, 15, 16, 18, 21, 23, 24, 27, 29, 35