Task: Program Execution
Input (English): X Q h l 4343 2497 o Q 4685 c 7211 1501 5943 2151 687 7711 8701 Y 9551 35 V W 5457 Q 9069 x v 6505 7365 q b 4541 4073 b r 3277 T
Output (English): 1, 2, 3, 4, 7, 8, 10, 18, 21, 22, 24, 26, 27, 30, 31, 34, 35, 37