Task: Program Execution
Input (English): 6149 4543 7921 5185 7247 q 7067 4483 6015 d 2713 q 7329 7911 h 3109 4917 G 1659 305 W 4229 461 R B 5721 f 8971 7509 W c
Output (English): 6, 10, 12, 15, 18, 21, 24, 25, 27, 30, 31