import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
// 使用HashSet来判断是否是不重复的
HashSet<Integer> hs = new HashSet<>();
// 获取代求解的值
int target = sc.nextInt();
// 求解每位上面的整数
while (target != 0) {
int temp = target % 10;
// 如果能加入,就是说明没有重复
if (hs.add(temp)) {
System.out.print(temp);
}
// 除10能去掉最右边的数字
target /= 10;
}
System.out.println();
}
}
}