Task: Program Execution
Input (English): 9395 S p D Z c r 8047 l n U G 1947 q 6777 2299 r X 6367 2391 9001 h H 945 D B W x s 8151 Z 8527 507 p 6917 7089 7273 2725
Output (English): 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 14, 17, 18, 22, 23, 25, 26, 27, 28, 29, 31, 34