#include<stdio.h>
int main()
{
    int n, m, arr[10] = {0};
    scanf("%d", &n);
    while(n)
    {
        m = n % 10;
        n /= 10;
        arr[m]++;
        if(arr[m] == 1)
            printf("%d", m);
    }
}