Task: Program Execution
Input (English): 3099 2499 v 6311 1903 8547 2317 n 2519 491 n 7291 M N 1303 R d v x 8269 3339 M S 283 A
Output (English): 1, 2, 4, 5, 6, 7, 9, 10, 12, 15, 20, 21, 24