Task: Program Execution
Input (English): 7585 4633 5527 31 7629 R 8277 9355 h M 5003 1691 9431 8977 T S 3325 6479 Z L 9887 2413 1897 P 9271
Output (English): 7585, 4633, 5527, 31, 7629, 8277, 9355, 5003, 1691, 9431, 8977, 3325, 6479, 9887, 2413, 1897, 9271