#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;
    }
}
