Task: Program Execution
Input (English): 4231 M 4497 Z 7765 1339 3145 2785 p w w 2667 5299 P 3535 7931 9941 j S 2271 2415 4911 4825 Q 1971 6483 647 J Y 7799 P E 6587
Output (English): 2, 4, 9, 10, 11, 14, 18, 19, 24, 28, 29, 31, 32