Task: Program Execution
Input (English): K 8377 v d 9717 M 4371 m 9163 o x m 4965 5645 2063 A 7909 D 9157 9231 6265 9231 q z 1403 a p 3053 D 8915 4699 3259 2397
Output (English): 1, 3, 4, 6, 8, 10, 11, 12, 16, 18, 23, 24, 26, 27, 29