Task: Program Execution
Input (English): w z A h 9819 P x 1611 6641 p 3735 P 5075 d P 5883 j 1615 8307 U 9797 8933 6779 U 1143 5821 4969 1065 M
Output (English): 1, 2, 3, 4, 6, 7, 10, 12, 14, 15, 17, 20, 24, 29