#include<iostream>
#include<map>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
vector<string> word;
string input;
while (cin >> input) {
if (find(word.begin(), word.end(), input) == word.end()) //利用find泛型算法判断有无重复项
word.push_back(input);
}
for (auto it = word.cbegin(); it != word.cend(); it++)
cout << *it << " ";
return 0;
}