Task: Program Execution
Input (English): z 3373 m D 355 2545 P 3979 b 4187 x i G Z 5519 6865 2537 M 2985 8181 1691 9689 J j 3429 3177 Z 9297 9037 705 z 3685
Output (English): 1, 3, 4, 7, 9, 11, 12, 13, 14, 18, 23, 24, 27, 31