#include <iostream>
using namespace std;
int main ()
{
string s;
while(cin>>s)
{
int arr[200]={0};
for (int i=0;i<s.size();i++)
{
int index=s[i]-'A';
if (arr[index]==0)
{
arr[index]++;
cout<<s[i];
}
}
cout<<endl;
}
}