#include <iostream>
#include <sstream>
#include <vector>
#include <cstring>
using namespace std;
vector<string> split(string& data, char flag)
{
vector<string> res;
istringstream iss(data);
string tmp;
while(getline(iss, tmp, flag))
res.push_back(tmp);
return res;
}
int main()
{
string line;
vector<string> v;
string p;
getline(cin, line);
stringstream ssin(line);
while(ssin >> p)
v.push_back(p);
for(auto& z : v)
cout << z << endl;
}