while(line = readline()) {
    var str = line.trim()
    var length = str.length
    var tempArr = []
    while (length--) {
        var n = str[length]
        if (!tempArr.includes(n)) {
            tempArr.push(n)
        }
    }
    console.log(tempArr.join(''))
}