Task: Program Execution
Input (English): 2521 B h 7031 R 3543 8191 T 377 6379 7397 n D 5761 W 6879 987 b b x 9473 n 6669 6541 H p a 8391 9257 2405 W A v v A h I 437 P 2289
Output (English): 1, 4, 6, 7, 9, 10, 11, 14, 16, 17, 21, 23, 24, 28, 29, 30, 38, 40