Internet search engines, such as Google, automatically sort and categorize web pages around the world to create a huge database. It also parses the search keywords entered by the user and creates an inquiry statement for database search.

In each case, complicated processing is performed to realize efficient search, but for the time being, all the basics are cutting out words from sentences.

So, please try to cut out the word from the sentence. This time, we will target English sentences with clear word breaks as follows.

* Target text: English text of 1024 characters or less, not including line breaks
* Delimiter: All are half-width characters, only spaces, periods, and commas.
* Words to cut out: Words with 3 to 6 letters (ignore words with 2 or less letters or 7 or more letters)



input

An English sentence consisting of delimiters and alphanumeric characters is given on one line (all half-width characters).

output

Please output the words separated by one space character (half-width) on one line.

Examples

Input

Rain, rain, go to Spain.


Output

Rain rain Spain


Input

Win today's preliminary contest and be qualified to visit University of Aizu.


Output

Win and visit Aizu
#include<iostream>
#include<iterator>
#include<string>
#include<algorithm>
#include<functional>
#include<cctype>
using namespace std;
struct IsAlpha:unary_function<char, bool>
{bool operator()(char c)const{return isalpha(c)||c=='\'';}};
int main()
{
	string s;
	getline(cin, s);
	string::iterator i1=s.begin(),i2;
	ostream_iterator<char>o(cout);
	int f=0;
	for(;;)
	{
		i2 = find_if(i1,s.end(),not1(IsAlpha()));
		if(i2==s.end()){*o='\n';break;}
		if(i2-i1>2&&i2-i1<7)
			(f++?(*o=' ',f):f),
			copy(i1,i2,o);
		i1=i2+1;
	}
	return 0;
}