Task: Program Execution
Input (English): 7777 1697 P D 2829 B B 1981 5679 3987 x w 8371 9635 6625 w 933 403 5075 2071 k 9803 r L C 5545 9815 W a 2559 4689 m R D p
Output (English): 1, 2, 5, 8, 9, 10, 13, 14, 15, 17, 18, 19, 20, 22, 26, 27, 30, 31