#include <iostream> #include <cstring> using namespace std; int main() { string str, s; getline(cin, str); for (auto c : str) s = s + c + ' '; s.pop_back(); //去掉最后一个空格 cout << s << endl; return 0; }