#include
#include
#include
using namespace std;
int main()
{
string word, query;
getline(cin, query);
istringstream ss(query);
while(ss >> query)
{
word += "[" + query + "]\n";
}
for(size_t i = 0; i < word.size(); ++i)
{
cout << word[i];
}
return 0;
}