Task: Program Execution
Input (English): A Q 6491 7525 A 1501 A R 2813 G 5053 9625 2805 N a 7413 8501 8655 9623 9719 9765 B 189 5291 S
Output (English): 6491, 7525, 1501, 2813, 5053, 9625, 2805, 7413, 8501, 8655, 9623, 9719, 9765, 189, 5291