Task: Program Execution
Input (English): U 4309 1575 7151 I 413 2983 P r 1517 6283 3815 5657 5261 9063 2305 4985 J v P 3033 H 8485 M R 2127 8815 h A 5439
Output (English): 1, 5, 8, 9, 18, 19, 20, 22, 24, 25, 28, 29