#include <iostream>
#include <vector>
#include <string>
#include <sstream>
using namespace std;
int main()
{
vector<string> words;
string line, tmp;
getline(cin, line);
istringstream iss(line);
while (iss >> tmp) {
words.push_back(tmp);
}
for (auto it = words.begin(); it != words.end(); ++it) {
cout << *it << endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8c3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgdmVjdG9yPHN0cmluZz4gd29yZHM7CiAgICBzdHJpbmcgbGluZSwgdG1wOwogICAgZ2V0bGluZShjaW4sIGxpbmUpOwogICAgaXN0cmluZ3N0cmVhbSBpc3MobGluZSk7CiAgICB3aGlsZSAoaXNzID4+IHRtcCkgewogICAgICAgIHdvcmRzLnB1c2hfYmFjayh0bXApOwogICAgfQoKICAgIGZvciAoYXV0byBpdCA9IHdvcmRzLmJlZ2luKCk7IGl0ICE9IHdvcmRzLmVuZCgpOyArK2l0KSB7CiAgICAgICAgY291dCA8PCAqaXQgPDwgZW5kbDsKICAgIH0KfQo=