Task: Program Execution
Input (English): 3491 H k g l v 1611 5635 d x T 5929 S V y 367 5021 3157 D K 8737 U s h g 1543 5255 5127 V 2497 Y 7033 1381 861
Output (English): 2, 3, 4, 5, 6, 9, 10, 11, 13, 14, 15, 19, 20, 22, 23, 24, 25, 29, 31