#include<iostream>
#include<string>
#include<list>
#include<sstream>
#include<algorithm>
using namespace std;main(){string s;getline(cin,s);list<string>m;stringstream b(s);while(getline(b,s,' '))if(find(m.begin(),m.end(),s)==m.end())m.push_back(s);for(auto a:m)cout<<a<<' ';cout<<endl;}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPHN0cmluZz4KI2luY2x1ZGU8bGlzdD4KI2luY2x1ZGU8c3N0cmVhbT4KI2luY2x1ZGU8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkO21haW4oKXtzdHJpbmcgcztnZXRsaW5lKGNpbixzKTtsaXN0PHN0cmluZz5tO3N0cmluZ3N0cmVhbSBiKHMpO3doaWxlKGdldGxpbmUoYixzLCcgJykpaWYoZmluZChtLmJlZ2luKCksbS5lbmQoKSxzKT09bS5lbmQoKSltLnB1c2hfYmFjayhzKTtmb3IoYXV0byBhOm0pY291dDw8YTw8JyAnO2NvdXQ8PGVuZGw7fQ==