import java.util.; import java.io.; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String str = null; Set set = new HashSet<>(); while((str = in.readLine()) != null){ int len = str.length(); String temp = ""; while(len -- > 0){ if(!set.contains(str.charAt(len))){ temp += str.charAt(len); set.add(str.charAt(len)); } } int num = Integer.parseInt(temp); System.out.println(num);

    }
}

}