import java.util.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
BitSet bs = new BitSet(10);
while (in.hasNextInt()) { // 注意 while 处理多个 case
int number = in.nextInt();
// 弹出操作
while (number != 0) {
int rem = number % 10;
number /= 10;
if (bs.get(rem)) continue;
bs.set(rem);
System.out.print(rem);
}
}
}
}