#include<iostream>
#include<string>
using namespace std;
int main()
{
int arr[11];
int a;
string str;
int temp=0;
while(cin>>a)
{
for(int i=0;i<11;i++)
{
arr[i]=-1;
}
temp=a%10;
while(temp!=0)
{
if(arr[temp]==-1)//第一次出现
{
arr[temp]=1;
str+=to_string(temp);
}
a=a/10;
temp=a%10;
}
cout<<str<<endl;
}
return 0;
}


京公网安备 11010502036488号