Task: Program Execution
Input (English): P 3107 n 5573 u g G 991 5469 g G 9973 R 3091 B 3063 6893 r N T p V 2533 d 7639
Output (English): 1, 3, 5, 6, 7, 10, 11, 13, 15, 18, 19, 20, 21, 22, 24