#include <iostream>
#include <list>
#include <string>
#include <fstream>
#include <cstddef>
#include <algorithm>
using namespace std;
int main()
{
list<string>word;
string next_word;
while(cin>>next_word)
{
word.push_back(next_word);
}
word.sort();
list<string>::iterator end_unique =
unique(word.begin(),word.end());
word.erase(end_unique,word.end());
for(list<string>::iterator s = word.begin();s!=word.end();s++)
{
cout<<*s<<" ";
}
return 0;
}
#include <list>
#include <string>
#include <fstream>
#include <cstddef>
#include <algorithm>
using namespace std;
int main()
{
list<string>word;
string next_word;
while(cin>>next_word)
{
word.push_back(next_word);
}
word.sort();
list<string>::iterator end_unique =
unique(word.begin(),word.end());
word.erase(end_unique,word.end());
for(list<string>::iterator s = word.begin();s!=word.end();s++)
{
cout<<*s<<" ";
}
return 0;
}