Task: Program Execution
Input (English): J 2147 1135 4049 d a 2001 g L h 3867 9351 R 8141 V 3777 7341 m p 845 3951 s 3897 W 1533 2613 g r 1667 6537 t m 4041
Output (English): 1, 5, 6, 8, 9, 10, 13, 15, 18, 19, 22, 24, 27, 28, 31, 32