Task: Program Execution
Input (English): T R 8365 Z 7943 R x B M n 259 A 3511 6305 D n Y n R i j 8343 p g 1853
Output (English): 1, 2, 4, 6, 7, 8, 9, 10, 12, 15, 16, 17, 18, 19, 20, 21, 23, 24