#include <iostream> #include <cstring> using namespace std; int main() { string a; getline(cin, a); string b; for (auto c : a) b = b + c + ' '; b.pop_back();//把最后一个字符删掉 cout << b << endl; return 0; }