let line;
while(line=readline()){
    let num=line.split('').reverse();
    let res=Array.from(new Set(num)).join('')
     console.log(res)
}