Task: Program Execution
Input (English): Q n 9815 w x r a p 9395 1945 2195 3113 r M y F 4339 D 8899 i C o 2405 1407 6625 4237 3783 7381 J q o 2197 9469 3251
Output (English): 1, 2, 4, 5, 6, 7, 8, 13, 14, 15, 16, 18, 20, 21, 22, 29, 30, 31