let arr = readline().split('')
let str = ''
arr.forEach(el => {
    if (str.indexOf(el) === -1) {
        str += el
    }
})

console.log(str.length)