Task: Program Execution
Input (English): u B 3511 s C F 3167 8243 Z 3349 S 6549 5091 C 7941 L 3991 C 2453 9277 w 8185 Z 1917 6865 2329 q y B 9153 r 5401 9867
Output (English): 1, 2, 4, 5, 6, 9, 11, 14, 16, 18, 21, 23, 27, 28, 29, 31