#include <string>
#include <sstream>
#include <vector>
#include <iostream>

using namespace std;

vector<string> myWords;

int main() 
{
    string mySentence, word;
    getline(cin, mySentence);
    std::istringstream strm(mySentence);
    while ( strm >> word)
        myWords.push_back(word);
        
    for ( auto& v : myWords )        
        std::cout << v << "\n";
}