Task: Program Execution
Input (English): 2659 Q 957 a d G 5809 6061 8423 3659 6227 4709 529 9257 d 1795 4459 t 5447 Q 3475 1067 8203 7221 g 2173 6537 439 M 3723 835 S 5757 7949
Output (English): 2, 4, 5, 6, 15, 18, 20, 25, 29, 32