Task: Program Execution
Input (English): L 6939 4445 7511 Z 7009 2355 q 5321 6411 O 3711 R U 9107 5 k R k 6179 k s w z f 4821 9807 r b 7211 c 4573 5751 9525
Output (English): 1, 5, 8, 11, 13, 14, 17, 18, 19, 21, 22, 23, 24, 25, 28, 29, 31