Task: Program Execution
Input (English): p 4389 Z 6609 r X 6741 2661 B 801 3939 9575 y L h d 217 D a 3255 4745 229 Y b u H J 7485 7603 w 3669 p
Output (English): 2, 4, 7, 8, 10, 11, 12, 17, 20, 21, 22, 28, 29, 31