#include <iostream>
using namespace std;

int main() {
    // num_1为个位数,num /= 10为十位数
    int num,arr[10]={0};
    cin >> num;
    int num_1;
    while (num > 0) {
        num_1 = num % 10;
        num /= 10;
        if (arr[num_1] == 0){
            arr[num_1] = 1;
            cout << num_1;
        }
    }
    return 0;
}