Task: Program Execution
Input (English): M 2907 2781 2291 J 3653 m S 5573 1035 Q N Q W 7379 s 185 l z i 8521 2901 i 1213 415 r 2411 7135 x 8743
Output (English): 2907, 2781, 2291, 3653, 5573, 1035, 7379, 185, 8521, 2901, 1213, 415, 2411, 7135, 8743