Task: Program Execution
Input (English): L 2293 3001 b 8353 Q Z 785 4849 5731 O M 5883 5721 8735 H O 8551 h 2287 5935 d 7001 3119 5795 X h 9733 H 1769
Output (English): 1, 4, 6, 7, 11, 12, 16, 17, 19, 22, 26, 27, 29