//10815
#include"iostream"
#include"algorithm"
#include"vector"
#include"map"
#include"string"
#include"cctype"
#include"deque"
#include"queue"
#include"stack"
#include"cstdio"
#include"cmath"
#include"set"
#include"sstream"
using namespace std;
set<string>dict;
int main()
{
//freopen("a.txt","r",stdin);
string a;
string buf;
while(getline(cin,a)) //while(cin>>s)
{
//cout<<a<<"---"<<endl;
int i;
for(i=0;i<a.length();i++)
if(isalpha(a[i])&&a[i]>='A'&&a[i]<='Z') a[i]+=32;
else if(!isalpha(a[i])) a[i]=' ';
istringstream ss(a);
while(ss>>buf) {dict.insert(buf);} //cout<<buf<<"---"<<endl;}
}
for(auto p=dict.begin();p!=dict.end();p++)
cout<<*p<<endl;
return 0;
}
/*a.txt*/
/*
Adventure in Disneyland
Two bloudes were going to Disneyland when they came to a fork in the
road. The sign read: "Disneyland Left."
So they went home.
*/